string.reFind()

Uses a regular expression (RE) to search a string for a pattern. The search is case sensitive.

string.reFind( reg_expression=string, start=number, returnsubexpressions=boolean, scope=string )

Returns: any

Argument Description
reg_expression
string, required

Regular expression for which to search. Case sensitive.

start
number, optional

A positive integer. Position in the string at which to start search. The default value is 1.

returnsubexpressions
boolean, optional
scope
string, optional

Examples

writeDump("test 123!".reFind("[0-9]+"));
    writeDump("test 123".reFind("[0-9]+",7,true));

See also