Collecting part of a string part from Left , right and middle in ASPWe can remove or collect part of a string from different locations of a string by using libraray functions of VB used in ASP. We will discuss some of the functions used to collect different string parts from a given string. We will start with Right() function.
Right()Here is the syntax of Right() function to copy characters from right side of a string.
My_string= Right( string_var, number )Here string_var is the string variable and number is the number of characters from right to be copied. Here is an example code of Right function.
Here the output of above code
|ASP functions to handle string|
Adding two or more strings in ASP
Getting the size or length of the string by using len() function
Removing blank space before and after a string using trim function
Changing lower to upper or upper to lower case of text present inside a string
Reversing a string variable by using StrReverse function
Compare two strings in different ways by using StrComp function
Collecting parts from Left , right and middle areas of a string
Checking matching of a string inside another string using InStr function
Searching and replacing strings inside another string using Replace function
Creating arrays by splitting string using split() function
Joining elements of an array to create a string variable
Line Break by replacing text line break to html line break using Replace function