When using Regular Expressions you’ll often need to work with sets of characters, for example, digits, alphanumeric characters, or any white space characters. To simplify working with this type of data, CFML supports the use of POSIX character classes – special identifiers that match sets of characters. POSIX identifiers are always specified in between [[: and :]]. For example, [[:digit:]] matches any digit, [[:alnum:]] matches any alphanumeric character, and [[:space:]] matches any white space. In addition to the three examples used here, there are eight other POSIX character classes supported in CFML. (Applies to: ColdFusion 3 (or later))

Leave a Reply