Adobe FLEX 2-PROGRAMMING ACTIONSCRIPT 3.0 Manual page 292

Programming actionscript 3.0
Table of Contents

Advertisement

However, the three characters listed in the following table do function as metacharacters, with
special meaning, in character classes:
Metacharacter
]
-
\
For any of these characters to be recognized as literal characters (without the special
metacharacter meaning), you must precede the character with the backslash escape character.
For example, the following regular expression includes a character class that matches any one
of four symbols (
,
$
\
/[$\\\]\-]/
In addition to the metacharacters that retain their special meanings, the following
metasequences function as metasequences within character classes:
Metasequence
\n
\r
\t
\unnnn
\xnn
Other regular expression metasequences and metacharacters are treated as normal characters
within a character class.
Ranges of characters in character classes
Use the hyphen to specify a range of characters, such as
must constitute a valid range in the character set. For example, the following character class
matches any one of the characters in the range
/[a-z0-9]/
292
Using Regular Expressions
Meaning in character classes
Defines the end of the character class.
Defines a range of characters (see
character classes" on page
Defines metasequences and undoes the special meaning of
metacharacters.
,
, or
):
]
-
Meaning in character classes
Matches a newline character.
Matches a return character.
Matches a tab character.
Matches the character with the specified Unicode code point value
(as defined by the hexidecimal number
Matches the character with the specified ASCII value (as defined by
the hexidecimal number
"Ranges of characters in
292).
nnnn
).
nn
,
, or
A-Z
a-z
or any digit:
a-z
).
. These characters
0-9

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex

Table of Contents