Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
Community Patterns
Search among 15,160 community submitted regex patterns...
1
group german streetnames and streetnumbers
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
anchor from within html tags
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Negative Lookahead
PCRE (PHP <7.3)
Negative Lookahead Sample
Submitted by
TBU
-
8 years ago
1
Cascade ID
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
Search "contains" PHP conditions and replace
PCRE (PHP <7.3)
no description available
Submitted by
Jan Barasek
-
8 years ago
2
Eircode
PCRE (PHP <7.3)
Eircode validation for new postcodes identifiers in Republic of Ireland. Case-insensetive for easier user input. Added optional space separator to follow same pattern as in UK post codes and in examples used in eircode spec.
Submitted by
Arek Jaworski
-
8 years ago
1
test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
-1
IPv4 Advanced
PCRE (PHP <7.3)
no description available
Submitted by
Abdullah Pazarbasi
-
8 years ago
2
IP Address
PCRE (PHP <7.3)
IPv4 Address Input
Submitted by
anonymous
-
8 years ago
1
q
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
Trim whitespaces regex
PCRE (PHP <7.3)
this is trim-like regex
Submitted by
Giuseppe Tavella
-
8 years ago
1
Letters Only
PCRE (PHP <7.3)
It checks the string to be only letters with no spaces or any other char than a-z and A-z
Submitted by
anonymous
-
8 years ago
1
^((?!^City$)[a-zA-Z '])+$
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
Username
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
1
CI-Bol
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
Create directories
PCRE (PHP <7.3)
Regex to make sure directories have a "real" name and not code use for scripting/
Submitted by
anonymous
-
8 years ago
1
X user Y response
PCRE (PHP <7.3)
grep logs with X username and Y response code
Submitted by
anonymous
-
8 years ago
1
Only valid if uppercase words (letters + space), minimum 1, maximum 21
ECMAScript (JavaScript)
"ASDF ASDF ASDF ASDF A" OK "ASDF ASDF ASDF ASDF AS" NOK "asfd ASDF ASDF ASDF" NOK "ASDF ASDF ASDF AsdF" NOK "ASDF ASDF ASDF A12F" NOK
Submitted by
Matthias G.
-
8 years ago
1
Reg1
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
Reg2
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
...
521
522
523
524
525
...
758
IPv4 validation using recursion
1
Regular Expression
PCRE (PHP <7.3)
/
^
(
2
[
0
-
4
]
\d
|
25
[
0
-
5
]
|
1
\d\d
|
\d\d
?
)
\.
(?1)
\.
(?1)
\.
(?1)
$
/
gm
Open regex in editor
Description
Validate IPv4 addresses using PCRE's recursion patterns.
Submitted by
Captain Haddock
-
9 years ago