Regex Tester
The quick brown fox jumps over the lazy dog. - I am 123 years old - This is my website https://example.com - My favorite picture is this picture-of-me.png - You can find it here: /images/picture-of-me.png
/
/
T
h
e
q
u
i
c
k
b
r
o
w
n
f
o
x
j
u
m
p
s
o
v
e
r
t
h
e
l
a
z
y
d
o
g
.
-
I
a
m
1
2
3
y
e
a
r
s
o
l
d
-
T
h
i
s
i
s
m
y
w
e
b
s
i
t
e
h
t
t
p
s
:
/
/
e
x
a
m
p
l
e
.
c
o
m
-
M
y
f
a
v
o
r
i
t
e
p
i
c
t
u
r
e
i
s
t
h
i
s
p
i
c
t
u
r
e
-
o
f
-
m
e
.
p
n
g
-
Y
o
u
c
a
n
f
i
n
d
i
t
h
e
r
e
:
/
i
m
a
g
e
s
/
p
i
c
t
u
r
e
-
o
f
-
m
e
.
p
n
g
Regex Cheatsheet
Here you find every Regex character explained
Anchors
^
- Start of a string
$
- End of a string
\b
- Word boundary
\B
- Not word boundary
Quantifiers
?
- Optional
+
- 1 or more times
*
- 0 or more times
{n}
- Exactly n times
{n,}
- at least n times
{,m}
- at most m times
{n,m}
- Between n and m times
Character Classes
[abc]
- Character Set
[^abc]
- Not in character set
[a-z]
- Range of characters
.
- Any character except newline
\d
- Digit
\D
- Not a digit
\w
- Word character
\W
- Not a word character
\s
- Whitespace
\S
- Not whitespace
Groups
(abc)
- Capturing group
(?:abc)
- Non-capturing group
\1
- Group Reference
Lookarounds
(?=abc)
- Positive lookahead
(?!abc)
- Negative lookahead
(?<=abc)
- Positive lookbehind
(?<!abc)
- Negative lookbehind
Flags
g
- Global
i
- Case-insensitive
m
- Multiline
Other Characters
\[Symbol]
- Use a Regex Symbol as Text
|
- Or