Regular Expressions#
Regular Expressions must be given within forward slashes (/
) and are match agains the whole value and not some part of it. Here’s a summary:
For characters:
Syntax |
Example |
Meaning |
---|---|---|
|
|
that character |
|
|
any one character |
|
|
any one character between brackets |
|
|
any one character between those characters ( |
For repetitions:
Syntax |
Meaning |
---|---|
|
0 or more times |
|
1 or more times |
|
exactly n times |
|
at least n times |
|
from n to m times |
|
Either |
Some examples:
Syntax |
Meaning |
---|---|
|
exactly |
|
either |
|
three characters from those given. E.g. |
|
two to four characters from those given. E.g. |
|
One ore more characters followed by cero or more number, e.g. |
|
any alphabetic or numeric character |