|
Returns the position of the first occurrence of a regular expression in a string starting from the specified position. Returns 0 if no occurrences are found. The search is case-insensitive.
See also Find, FindNoCase, REReplace, and REReplaceNoCase.
|
|
|
REFindNoCase(reg_expression, string [, start ]
[, returnsubexpressions ] )
reg_expression
Regular expression used for search. This regular expression can include POSIX-specified character classes (for example, [:alpha:], [:digit:], [:upper:], and [:lower:]).
string
String being searched.
start
Starting position for the search. Default is 1.
returnsubexpressions
Boolean indicating whether subexpressions are returned. If you set this parameter to TRUE, the function returns a CFML structure with two arrays containing the positions and lengths of the matched sub-expressions, if any. You can retrieve from the structure using the keys "pos" and "len". If there are no occurrences of the regular expression, the "pos" and the "len" arrays each contain 1 (value = 0).
|
|