-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Javascript Regular Expressions
By :
In the following table, you can find the patterns for grouping, alternation, and back reference. The grouping is used to group a set of characters in a Regex. The alternation is used to combine characters into a single regular expression, and the back reference is used to match the same text as previously matched by a capturing group:
|
Pattern |
Description |
Example |
|---|---|---|
|
|
This groups characters together to create a clause, that is, it matches |
|
|
|
Parenthesis also serves to capture the desired subpattern within a pattern. |
|
|
|
This matches |
Change the font size
Change margin width
Change background colour