Tags · Functions · Objects
Lucee Function Reference
Choose a function:

Function REFINDNOCASE

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

Example

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

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-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.