ColdFusion MX Regex Syntax

Another of those things that seem so hard to find. Apparently CFMX uses the ORO libraries for the regular expression handling.

"CF MX RegExp engine is based on the ORO libraries"

If that is true, then here is a link to the ORO library home page:

Get only numbers from a string with regex: tempstring = rereplace(tempstring, '[^0-9]+', '', 'all'); (source:

Allow a-z small caps, A-Z upper case, 0-9, and "-": [^a-zA-Z0-9-]





More examples:

Replace all characters in a string that aren’t numbers, letters, or underscores with an underscore:

tags: cfml, coldfusion,

Related Scribbles:
  • Regex Examples and Tools
  • ColdFusion Notes

  • ID: 724
    Date Updated:
    2019-06-13 15:36:34
    Date Created:
    2005-12-20 10:55:42


     >> Leonard Chan's Homepage  >> Scribble Web  >> ColdFusion MX Regex Syntax is hosted by Perceptus Solutions Inc.