RegEx
Check Real Time RegEx String.
Testing RegEx
NOT MATCHED :(
[]
Pattens
RegEx | Description |
---|---|
. | Any character except newline |
^ | beginning (match start of line) |
$ | end (match end of line) |
\w \d \s | word, digit, whitespace |
\W \D \S | not word, digit, whitespace |
\. \* \\ | escaped special characters |
[abc] | any of a, b, or c |
[^abc] | not a, b, or c |
[a-z] | character between a & z |
[A-Z] | character between A & Z |
[0-9] | number between 0 & 9 |
^abc$ | start / end of the string |
(abc) | Capture group |
a{5} a{2,} | exactly five, two or more |
a{1,3} | between one & three |
ab|cd | match ab or cd |
Basic Pattens
RegEx | URL/String | Result |
---|---|---|
^r | rabbit parrot | ✅ ❌ |
t$ | rabbit trap | ✅ ❌ |
(\d+) | 45 45A 45/A | ✅ ✅ ✅ |
(\d+$) | 45 45A 45/A | ✅ ❌ ❌ |
(\d{2}/\d{2}/\d{4}) | 05/09/2024 5/09/2024 05/9/2024 05/9/224 | ✅ ❌ ❌ ❌ |
Advance Pattens
RegEx | URL/String | Result |
---|---|---|
https://demo.in/form/page/(\d+$) | https://demo.in/form/page/45 https://demo.in/form/page/45A https://demo.in/form/page/45/A | ✅ ❌ ❌ |
https://demo.in/form/(\d+)/(\d+$) | https://demo.in/form/02/45 https://demo.in/form/02Q/45A https://demo.in/form/02/45/A | ✅ ❌ ❌ |
param=[^&]+¶m2=([^&]+)$ | param=Data%20saved¶m2=124045 param=Data%20saved¶m2=124045¶m3=done | ✅ ❌ |