FilterIn

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.

Sample

Function Start

Dim 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

Platform Objects and Methods

InStr

GetWords

Extract