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
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 4,900 community submitted regex patterns...
1
regex match
PCRE2 (PHP >=7.3)
regex match on lastname and domain
Submitted by
anonymous
-
3 days ago
1
Atlas MRN
PCRE2 (PHP >=7.3)
Im IT Zollverfahren Atlas werden die bisherigen Zollregistriernummern ATx Nummern durch MRN ersetzt. Der Aufbau der MRN erfolgt nach folgendem Schema: Stelle / Inhalt / zulässige Werte 1-2 / Jahr / 2 Integer (24 bis 99) 3-4 / Land / 2 Char (DE)...
Submitted by
Florian Ledeboer
-
3 days ago
1
Fing GTM code in html
PCRE2 (PHP >=7.3)
This function extracts the Google Tag Manager (GTM) key from a given input string. The GTM key typically follows the format "GTM-XXXXXX", where "XXXXXX" represents a unique identifier.
Submitted by
kanapka94
-
3 days ago
1
match all test directories
PCRE2 (PHP >=7.3)
s
Submitted by
anonymous
-
3 days ago
1
Postcode validation
PCRE2 (PHP >=7.3)
I come across Dutch postcodes quite different from normal 5 or 6 digit postcodes. So, this regex covers most possible postcodes. Test cases: 1234 AB // Dutch postal code 12345 // Generic 5-digit postal code 380059 // Indian 6-digit postal code...
Submitted by
Pratik P
-
2 days ago
1
RFC5322 email address validation (maybe FEWER STEPS !)
PCRE2 (PHP >=7.3)
validate email address according to RFC 5322 specification. I tried to optimize regex radically restructuring the original BNF-like specification with full support preserved.
Submitted by
hirunotuki
-
a day ago
-1
Twitter #hashtags
Python
Using the twitter API, take a tweet object and find & link #tags to embed in HTML
Submitted by
@triplec1988
-
11 years ago
-2
Between two strings
Python
Awesome explanation of nested lookbacks
Submitted by
OnlineCop
-
9 years ago
-1
text beetween text
Python
no description available
Submitted by
karol
-
9 years ago
0
Remove litteral \n
Python
This regex remove \n like litteral string not a newline
Submitted by
Nkio
-
10 years ago
0
test
Python
no description available
Submitted by
anonymous
-
10 years ago
0
test
Python
test
Submitted by
boag
-
9 years ago
0
XML 1.0 dateTime values
Python
dateTime type matching regex for XML 1.0
Submitted by
DervishD
-
9 years ago
0
str with whitespace not starting with space
Python
no description available
Submitted by
anonymous
-
9 years ago
0
phone number russia
Python
phone number without spaces or hyphens +7YYYXXXXXXX
Submitted by
vscoder
-
9 years ago
-4
Matches percentage with any number of digits
Python
Only captures value for converting percentage to decimal. Returns empty if percentage but no value. no match = no percentage found
Submitted by
sharkey
-
9 years ago
-2
Basic grammar for regex matching of simplistic Makefiles
Python
This expression should both normal and wildcard targets and rules wrapped in simple sub-shell or varriable substitution enclosures.
Submitted by
Robert Butler <me@r-butler.net>
-
10 years ago
-2
Email Validation
Python
Full email validation with optional "." "-" "_"
Submitted by
Jakub Stasiak
-
8 years ago
-3
Match substitutions
Python
Match regular expressions substitutions, I personally use this to perform my validate if it is a substitution, then call re.sub() on it.
Submitted by
Zarthus
-
10 years ago
-1
for checking code number 1111/111111111
Python
no description available
Submitted by
dejv
-
10 years ago
1
...
64
65
66
67
68
...
245
for checking code number 1111/111111111
-1
Regular Expression
Python
r"
(
(
[
0
-
9
]
){1,4}
)
(
(
\/
)
)
(
[
0
-
9
]
){1,10}
"
Open regex in editor
Description
no description available
Submitted by
dejv
-
10 years ago