Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
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 (C#)
Rust
Sponsors
Community Patterns
Search among 12,960 community submitted regex patterns...
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
IsEmailValid()
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-22 13:04
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
asf
PCRE (PHP <7.3)
asfd
Submitted by
asdf
-
9 years ago
2014-10-22 11:16
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Validate date
PCRE (PHP <7.3)
Validate date in format dd/mm/yyyy dd.mm.yyyy dd-mm-yyyy or dd/mm/yy dd.mm.yy dd-mm-yy GetFrom -> http://stackoverflow.com/questions/15491894/regex-to-validate-date-format-dd-mm-yyyy
Submitted by
Dilakv
-
9 years ago
2014-10-21 18:45
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
e164 format
ECMAScript (JavaScript)
e164 format
Submitted by
anonymous
-
9 years ago
2014-10-21 16:20
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
e164_basic
ECMAScript (JavaScript)
e164_basic
Submitted by
anonymous
-
9 years ago
2014-10-21 16:19
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
e164_basic
PCRE (PHP <7.3)
e164_basic
Submitted by
anonymous
-
9 years ago
2014-10-21 16:18
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
e164_basic
PCRE (PHP <7.3)
e164_basic
Submitted by
anonymous
-
9 years ago
2014-10-21 16:15
4
9 upvotes, 5 downvotes (score 38.8%) (You must be signed in to vote)
Capturing items from multiple lists using a single regex
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-21 15:19
0
2 upvotes, 2 downvotes (score 15%) (You must be signed in to vote)
GlobalRange-phone-fax
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-21 14:00
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
LogExpert Regex Columnizer
PCRE (PHP <7.3)
parsing log file
Submitted by
Oddbjørn Haaland, Sander Struijk
-
9 years ago
2014-10-21 11:46
22
59 upvotes, 37 downvotes (score 51.5%) (You must be signed in to vote)
UK Postcode Checker
PCRE (PHP <7.3)
Checks for valid UK/British postcodes. There was another on here that had for some reason been upvoted, but it was actually incorrect as it worked on none of my valid own postcodes! Namely that it assumed two letters and a number (BS3) when you can have variations (M20). Allows for an optional spac...
Submitted by
MaffooBristol
-
9 years ago
2014-10-21 08:23
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Reg124
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-21 07:45
7
21 upvotes, 14 downvotes (score 43.6%) (You must be signed in to vote)
if, else if, else condtion match
ECMAScript (JavaScript)
matches full if condition statment eg: if(condition){ ... } else if(condition){ ... }else{...
Submitted by
Ivan Jakesevic
-
9 years ago
2014-10-20 13:50
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
RegExExample
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-20 13:13
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
RFC 5322 email validation
PCRE (PHP <7.3)
Unsatisfied with your email validation? Concerned about standards compliance? Worried about that one weird edge case? Want to stress-test your regex engine? This might be the regex for you!
Submitted by
Blake Thomas
-
9 years ago
2014-10-19 19:06
0
2 upvotes, 2 downvotes (score 15%) (You must be signed in to vote)
Domain Name .CZ - only 2th level format
PCRE (PHP <7.3)
Valid only for something.cz, some-thing.cz, 2245exampl.cz ... Not-valid for -some.cz, here.com.cz ...
Submitted by
Pavel Ondřej
-
9 years ago
2014-10-18 10:16
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
first regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-10-17 18:15
3
8 upvotes, 5 downvotes (score 35.5%) (You must be signed in to vote)
everything that doesn't match .gitignore at the end
PCRE (PHP <7.3)
must match: selection/nl/example.xml selection/example.xml selection/blabla.txt selection/es/ ...
Submitted by
anonymous
-
9 years ago
2014-10-17 12:16
2
9 upvotes, 7 downvotes (score 33.2%) (You must be signed in to vote)
Positive Numbers greater than 0 with leading zeroes.
ECMAScript (JavaScript)
Accepts all positive numbers above 0. Accepts numbers with leading zeroes e.g.: 0123, 00123.
Submitted by
Sandeep Ranka
-
9 years ago
2014-10-17 05:57
0
5 upvotes, 5 downvotes (score 23.7%) (You must be signed in to vote)
Unicode alpha-numeric regex
PCRE (PHP <7.3)
Tests for all unicode language characters and number. Excludes any sentence joining characters etc.
Submitted by
Jamie
-
9 years ago
2014-10-16 12:40
1
...
622
623
624
625
626
627
628
...
648
Replace text domain in WP i18n
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
__
\(
\s
?
(
(
[
'"
]
)
(
(
(?!(?<!
\\
)
\2
)
.
)*
)
\2
)
,
'wprss'
\s
?
\)
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
Xedin Unknown
-
9 years ago
2014-09-22 21:03