AdobeStock_455007340

Special RegEx Characters

CFML supports the use of Regular Expressions in both search and replace operations (using functions like REFind() and REReplace()). When using Regular Expressions remember the following special characters: – specifies a character range, $ matches a new line, ^ excludes characters from being matched, parentheses group characters into sets, curly braces specify the number of times an expression must be matched, and square brackets specify one of a set of characters that must be matched. (Applies to: ColdFusion 3 (or later))

Leave a Reply