rEMatchNoCase
Description
Uses a regular expression (RE) to search a string for a pattern, starting from a specified position. The search is case-insensitive.
Categories
Related
Syntax
REMatchNoCase(reg_expression, string)
Attributes
| Attribute | Description | Required | Default |
|---|---|---|---|
| reg_expression | Regular expression for which to search. Case-insensitive. For more information, see Using Regular Expressions in Functions in the Developing ColdFusion Applications. | ||
| string | A string or a variable that contains one. String in which to search. |
Returns
An array
of strings that match the expression.
Example
<!--- Find all the URLs in a web page retrieved via cfhttp:. --->
result = REMatch("https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?", cfhttp.filecontent);