262
Chapter 14 Using Regular Expressions in Functions
This code replaces all the spaces with *, producing this string:
Macromedia*Web*Site
The following table shows the POSIX character classes that ColdFusion supports:
Character Class
Matches
alpha
Matches any letter. Same as [A-Za-z].
upper
Matches any uppercase letter. Same as [A-Z].
lower
Matches any lowercase letter. Same as [a-z].
digit
Matches any digit. Same as [0-9].
alnum
Matches any alphanumeric character. Same as [A-Za-z0-9].
xdigit
Matches any hexadecimal digit. Same as [0-9A-Fa-f].
space
Matches a tab, new line, vertical tab, form feed, carriage return,
or space.
Matches any printable character.
punct
Matches any punctuation character, that is, one of ! ‘ # S % & ` ( )
* + , - . / : ; < = > ? @ [ / ] ^ _ { | } ~
graph
Matches any of the characters defined as a printable character
except those defined as part of the space character class.
cntrl
Matches any character not part of the character classes [:upper:],
[:lower:], [:alpha:], [:digit:], [:punct:], [:graph:], [:print:], or [:xdigit:].
Summary of Contents for COLDFUSION 5-DEVELOPING
Page 1: ...Macromedia Incorporated Developing ColdFusion Applications MacroMedia ColdFusion 5 ...
Page 58: ...38 Chapter 3 Querying a Database ...
Page 134: ...114 Chapter 7 Updating Your Database ...
Page 210: ...190 Chapter 10 Reusing Code ...
Page 232: ...212 Chapter 11 Preventing and Handling Errors ...
Page 238: ...218 Chapter 12 Using the Application Framework ...
Page 262: ...242 Chapter 12 Using the Application Framework ...
Page 278: ...258 Chapter 13 Extending ColdFusion Pages with CFML Scripting ...
Page 320: ...300 Chapter 15 Indexing and Searching Data ...
Page 336: ...316 Chapter 16 Sending and Receiving E mail ...
Page 374: ...354 Chapter 18 Interacting with Remote Servers ...