AdobeStock_455007340

Using Special Characters in Regular Expressions

When using Regular Expressions characters match themselves unless they are special characters (ones that have special meanings within the expression). In CFML Regular Expressions these are + * ? . [ ^ $ ( ) { | and . To refer to any of these characters as themselves you must escape them by preceding them with a backslash (the character). (Applies to: ColdFusion 3 (or later))

Leave a Reply

Discover more from Ben Forta

Subscribe now to keep reading and get access to the full archive.

Continue reading