Ranges (Inclusive)
Grouping constructs capture the substrings of an input string, or a specified range from the string:
| . | Any character except a new line (\n) |
| (a|b) | a or b. The ( (open parenthesis) and ) (close parenthesis) may be used to group (or bind) parts of a search expression together. The alternation ‘|’ character finds both the values on the left or the values on the right. |
| […] | Group |
| [abc] | Range (a or b or c) |
| [^abc] | Not a or b or c |
| [a-q] | Letter between a and q |
| [A-Q] | Upper case letter between A and Q |
| [0-7] | Digit between 0 and 7 |
