Description
Specify an input string and a mask to filter that string, so only substrings that match the mask will be let into the final output string.
Syntax
target.strlib.filterin( input, filter )
input: String to be parsed
filter: Regular expression mask to filter the input string
Return value
This function returns a string.
SampleFunction StartDim str, str2 str = "Only numbers are allowed 7 2794 3 36 53" str2 = target.strlib.FilterIn( str, "\d" )end function In this case it will take the initial string, filter for numbers, and output a string str2 of only digits. See alsoPlatform Objects and MethodsInStrGetWordsExtract
SampleFunction StartDim str, str2 str = "Only numbers are allowed 7 2794 3 36 53" str2 = target.strlib.FilterIn( str, "\d" )end function In this case it will take the initial string, filter for numbers, and output a string str2 of only digits. See also
Function StartDim str, str2
str = "Only numbers are allowed 7 2794 3 36 53"
str2 = target.strlib.FilterIn( str, "\d" )end function
str2
= target.strlib.FilterIn( str, "\d" )end function
Platform Objects and MethodsInStrGetWordsExtract
Platform Objects and Methods
InStr
GetWordsExtract