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 11,480 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Valid Date Finder
PCRE (PHP <7.3)
FInds a valid date string in the formats mm-dd-yy or mm/dd/yy, as well as mm-dd-yyyy and mm/dd/yyyy.
Submitted by
anonymous
-
4 years ago
2019-11-06 17:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Test for occurrences of XCTest @testable annotation usage
PCRE (PHP <7.3)
There may be circumstances when you need to determine if there is any usage of XCTest's @testable annotation in unit test cases. One usage of this regex could be for a custom SwiftLint rule to require or disallow usage of @testable
Submitted by
anonymous
-
4 years ago
2019-11-06 19:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Password Validation
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-11-12 23:02
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Get all ampersands, but omits the ampersands that are part of any HTML entities.
PCRE (PHP <7.3)
Get all ampersands, but omits the ampersands that are part of any HTML entities.
Submitted by
anonymous
-
4 years ago
2019-11-07 12:13
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Full ISO 8601 Duration without lookaround
PCRE (PHP <7.3)
Without lookaround, this regular expression also accepts P and PT as valid duration strings. If your library supports lookaround, I recommend that you use Full ISO 8601 Duration with lookaround (also in the library) instead, which will also reject P and PT.
Submitted by
anonymous
-
4 years ago
2019-11-07 17:03
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Full ISO 8601 Duration with lookaround
PCRE (PHP <7.3)
With lookaround, this regular expression will reject P and PT as invalid duration strings. If your library does not support lookaround, I recommend that you use Full ISO 8601 Duration without lookaround (also in the library) instead, with the caveat that you will need to verify the string is not P o...
Submitted by
anonymous
-
4 years ago
2019-11-07 17:01
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Email Regex
PCRE (PHP <7.3)
https://emailregex.com/
Submitted by
anonymous
-
4 years ago
2019-11-07 17:15
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
tach va group nhom
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-11-08 03:19
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Paris
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-11-08 16:11
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Brazil Phone Validator
PCRE (PHP <7.3)
(\([0-9]{2}\)\s?[0-9]{4,5}-?[0-9]{3,4})|([0-9]{10,11})|([0-9]{2}\s?[0-9]{8,9})
Submitted by
anonymous
-
4 years ago
2019-11-08 18:01
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Prüfung Telefon
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-11-09 09:45
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
匹配不包含x且必须包含y
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-11-10 06:27
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
number price without comma (usd, krw)
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-11-11 05:52
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Return non matching part of string
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-11-11 07:10
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Bitbucket Branch Checker
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-11-12 09:48
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
integer with two decimal places
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-11-12 18:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Canada Postal Code
PCRE (PHP <7.3)
A postal code validation for Canada postal codes. Format can be: M4B 1T4 M4B1T4
Submitted by
anonymous
-
4 years ago
2019-11-12 19:04
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
dominio con uno o dos extensiones
PCRE (PHP <7.3)
valida dominio con una o dos extensiones. No admite @, ni www, ni http://
Submitted by
anonymous
-
4 years ago
2019-11-12 21:01
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
EX: Regex for check has dangerours SQL
PCRE (PHP <7.3)
Check whether or not the SQL is dangerous!
Submitted by
anonymous
-
4 years ago
2019-11-13 02:40
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
對象學校英文名稱
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
2019-11-13 05:48
1
...
521
522
523
524
525
526
527
...
574
dutch zipcode with named matching
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(?#digits)
(?<zipcode_digits>
\d
{4}
)
[
\s
]
?
(?#chars)
(?<zipcode_chars>
\w
{2}
)
/
i
Open regex in editor
Description
Loading markdown...
Submitted by
Eelke van den Bos
-
8 years ago
2015-07-02 09:05