Uses a regular expression (RE) to search a string for a pattern, starting from a specified position. The search is case-insensitive.

string.reFindNoCase( reg_expression=string, start=number, returnSubExpressions=boolean, scope=string, multiline=boolean )

Returns: any

Argument Description
string, required

Regular expression for which to search. Case-insensitive.

number, optional

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

boolean, optional

True: if the regular expression is found, the first array element contains the length and position, respectively,

If the regular expression contains parentheses that group subexpressions, each subsequent array element contains the length and position, respectively, of the first occurrence of each group.

If the regular expression is not found, the arrays each contain one element with the value 0.

False: the function returns the position in the string where the match begins. Default.

string, optional

One: (Default)Returns the first value that matches the regex

All: Returns all values that match the regex

boolean, optional

If true indicate the regular expression should treat input as having multiple lines. This option affects the interpretation of the ^ and $ metacharacters. When true the ^ metacharacter matches at the beginning of every line, and the $ metacharacter matches at the end of every line. Additionally the . metacharacter will not match newlines when true.


writedump("1212 aAbBcCdD".reFindnocase("[a-z]+",6,"true"));
	writedump("1212 aAbBcCdD".reFindnocase("[a-z]+",6,"true")['len'][1]);
	writedump("1212 aAbBcCdD".reFindnocase("[a-z]+",6,"false"));

See also