Using Regular Expressions in Functions
Regular expressions let you perform string matching operations using ColdFusion functions. This
chapter describes how regular expressions work with the following functions:
•
REFind
•
REFindNoCase
•
REReplace
•
REReplaceNoCase
This chapter does not apply to regular expressions used in the
These tags use JavaScript regular expressions, which have a slightly different syntax than
ColdFusion regular expressions. For information on JavaScript regular expressions, see
27, "Building Dynamic Forms," on page
Contents
About regular expressions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
Regular expression syntax. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145
Using backreferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
cfinput
583.
CHAPTER 7
and
tags.
cftextinput
Chapter
143