Lucee object methods reference

Object Method String.reFind

Uses a regular expression (RE) to search a string for a pattern. The search is case sensitive.
String.reFind(string reg_expression,[number start,[boolean returnsubexpressions,[string scope,[boolean multiline]]]]):any

Category

string,regex,find

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Default Value Description
reg_expression string  Yes   Regular expression for which to search. Case sensitive.
start number  No 1 A positive integer. Position in the string at which to start search. The default value is 1.
returnsubexpressions boolean  No  
scope string  No  
multiline boolean  No false 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.