Mid
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
Extract a substring from a string
Mid(string=[string], start=[integer], count=[integer])
string
string
true
The string to extract from
start
integer
true
The position of the first character to retrieve.
count
integer
true
The number of characters to retrieve.
Grabs the month out of a raw date yyyymmdd value.
mid( "20001122", "5", "2" );
Result: 11
str = "I Love Boxlang server";
writeOutput( mid( str, 8, 5 ) );
// Member function
str = "Hi buddy, Nice day!";
writeDump( str.mid( 4, 5 ) );