RegJex
Regular Expression Tester
RegJex is an online regular expression tester that uses PHP's ereg
and preg_match functions along with a JavaScript XMLHttpRequest object to test POSIX
and Perl compatible regular expressions in real time.
Color Codes
- Plain - Everything's fresh as a daisy
- Orange - Messed up regular expression
- Green - Matches regular expression
- Red - Does not match regular expression
| Metacharacters |
| Character |
Meaning |
| ^ | Indicates the start of a string |
| $ |
Indicates the end of a string |
| . |
Any one character |
| | |
Alternative |
| \ |
Escape the succeeding character |
| () |
Make group |
| [] |
Define class |
| Quantifiers |
| Character |
Meaning |
| ? |
0 or 1 |
| * |
0 or more |
| + |
1 or more |
| {x} |
Exactly x occurrences |
| {x, y} |
Between x and y (inclusive) |
| {x,} |
At least x occurrences |
- A project by Matt Johnson
- Comments? Questions?