Lucee Function Reference

refindnocase()

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

Beispiel

refindnocase(string reg_expression,string string,[number start,[boolean returnsubexpressions,[string scope,[boolean multiline]]]]):any

Kategorie

string,regex,find

Argumente

Die Argumente für diese Funktion sind fest vorgegeben. Ausser den nachfolgenden Argumenten dürfen keine weiteren verwendet werden.
Name Typ Required Default Value Beschreibung
reg_expression string  Yes   Regular expression for which to search. Case-insensitive.  
string string  Yes   String in which
to search.  
start number  No 1  
returnsubexpressions boolean  No   True: if the regular expression is found, the first array
element contains the length and position, respectively,
of the first match.
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.  
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.