-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Javascript Regular Expressions
By :
In the following table, you can find the patterns for character classes, which tell the Regex to match a single character:
|
Pattern |
Description |
Example |
|---|---|---|
|
|
This matches any character, except newline or another unicode line terminator, such as ( |
|
|
|
This matches any alphanumeric character, including the underscore. It is equivalent to |
|
|
|
This matches any single nonword character. It is equivalent to |
|
|
|
This matches any single digit. It is equivalent to |
|
|
|
This matches any non digit. It is equivalent to |
|
|
|
This matches any single space character. It is equivalent to |
|
Change the font size
Change margin width
Change background colour