Skip to content

RegEx

Check Real Time RegEx String.

Testing RegEx

NOT MATCHED :(

[]

Pattens

RegExDescription
.Any character except newline
^beginning (match start of line)
$end (match end of line)
\w \d \sword, digit, whitespace
\W \D \Snot 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|cdmatch ab or cd

Basic Pattens

RegExURL/StringResult
^rrabbit
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

RegExURL/StringResult
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=[^&]+&param2=([^&]+)$param=Data%20saved&param2=124045
param=Data%20saved&param2=124045&param3=done

Released under the MIT License.