Adobe FLEX 2-PROGRAMMING ACTIONSCRIPT 3.0 Manual page 290

Programming actionscript 3.0
Table of Contents

Advertisement

Metacharacter
[ and ]
(pipe)
|
About metasequences
Metasequences are sequences of characters that have special meaning in a regular expression
pattern. The following table describes these metasequences:
Metasequence
{n}
{n,}
and
{n,n}
\b
\B
\d
\D
\f
\n
\r
290
Using Regular Expressions
Description
Defines a character class, which defines possible matches for a single
character:
/[aeiou]/ matches any one of the specified characters.
Within character classes, use the hyphen (-) to designate a range of
characters:
/[A-Z0-9]/ matches uppercase A through Z or 0 through 9.
Within character classes, insert a backslash to escape the ] and
- characters:
matches either
/[+\-]\d+/
Within character classes, other characters, which are normally
metacharacters, are treated as normal characters (not metacharacters),
without the need for a backslash:
matches either
/[$£]/
For more information, see
Used for alternation, to match either the part on the left side or the part
on the right side:
/abc|xyz/ matches either
Description
Specifies a numeric quantifier or quantifier range for the previous item:
matches the character A repeated
/A{27}/
matches the character A repeated
/A{3,}/
matches the character A repeated
/A{3,5}/
For more information, see
Matches at the position between a word character and a nonword
character. If the first or last character in the string is a word character,
also matches the start or end of the string.
Matches at the position between two word characters. Also matches the
position between two nonword characters.
Matches a decimal digit.
Matches any character other than a digit.
Matches a form feed character.
Matches the newline character.
Matches the return character.
or
before one or more digits.
+
-
.
$ or £
"Character classes" on page
or
.
abc
xyz
27
3
"Quantifiers" on page
291.
times.
or more times.
to
times.
3
5
293.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex

Table of Contents