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 9,220 community submitted regex patterns...
4
4 upvotes, 0 downvotes (score 56.1%) (You must be signed in to vote)
semver
Recommended
This entry has been specifically selected by our team to be a great submission
PCRE (PHP <7.3)
Semantic Versioning regex pattern according to Tom Preston-Werner http://semver.org/ https://github.com/mojombo/semver/blob/master/semver.md First version of this regex follows semver 2.0.0....
Submitted by
@gvlx <Gerardo Lisboa>
-
9 years ago
2014-10-03 18:53
18
31 upvotes, 13 downvotes (score 55.8%) (You must be signed in to vote)
Date Regex(DD/MM/yyyy)
PCRE (PHP <7.3)
no description available
Submitted by
alcaamado
-
8 years ago
2015-08-26 06:25
11
16 upvotes, 5 downvotes (score 54.9%) (You must be signed in to vote)
Codice fiscale
PCRE (PHP <7.3)
Check "codice fiscale"
Submitted by
Luca
-
8 years ago
2015-08-19 10:43
9
12 upvotes, 3 downvotes (score 54.8%) (You must be signed in to vote)
Letters, numbers and blank space
PCRE (PHP <7.3)
The following regular expression matches only letter a-z A-Z numbers 0-9 and a blank space for a given string.
Submitted by
Jordan Raychev
-
8 years ago
2016-01-04 17:31
17
31 upvotes, 14 downvotes (score 54.3%) (You must be signed in to vote)
Capture comma separated numbers
PCRE (PHP <7.3)
Capture comma separated numbers, no matter if there are spaces before or after the commas.
Submitted by
Fernando Nunes
-
8 years ago
2015-07-19 01:57
31
77 upvotes, 46 downvotes (score 53.8%) (You must be signed in to vote)
ninite
PCRE (PHP <7.3)
no description available
Submitted by
peek
-
8 years ago
2015-09-29 11:28
29
70 upvotes, 41 downvotes (score 53.8%) (You must be signed in to vote)
Wrap long string to spec length
PCRE (PHP <7.3)
no description available
Submitted by
fullpipe
-
10 years ago
2013-07-21 20:34
10
15 upvotes, 5 downvotes (score 53.1%) (You must be signed in to vote)
Just validate one sequence of
PCRE (PHP <7.3)
sdfs sdfs FLBREV00022230 dsfsdfs sdfsf FLBREV00022234 In this case is false
Submitted by
Fiipe
-
9 years ago
2014-10-23 13:22
17
34 upvotes, 17 downvotes (score 53%) (You must be signed in to vote)
Between tags content
PCRE (PHP <7.3)
no description available
Submitted by
AgustÃn Bouillet
-
8 years ago
2015-10-24 10:52
6
7 upvotes, 1 downvotes (score 52.9%) (You must be signed in to vote)
[A-Za-z\x{0600}-\x{06FF}\x{1000}-\x{1021}_-][-\w]*
PCRE (PHP <7.3)
A-Za-z\x{0600}-\x{06FF}\x{1000}-\x{1021}_-*
Submitted by
[A-Za-z\x{0600}-\x{06FF}\x{1000}-\x{1021}_-][-\w]*
-
9 years ago
2014-11-03 16:04
15
29 upvotes, 14 downvotes (score 52.5%) (You must be signed in to vote)
IPv4
PCRE (PHP <7.3)
no description available
Submitted by
robwa
-
8 years ago
2015-12-17 08:14
8
11 upvotes, 3 downvotes (score 52.4%) (You must be signed in to vote)
Extract url GET parameters
PCRE (PHP <7.3)
Returns key/value pair of a url. Also works with google fonts which has additional information
Submitted by
anonymous
-
9 years ago
2014-09-16 08:37
8
11 upvotes, 3 downvotes (score 52.4%) (You must be signed in to vote)
If-Then-Else Conditionals
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-28 15:52
28
77 upvotes, 49 downvotes (score 52.4%) (You must be signed in to vote)
CSV line parsing
PCRE (PHP <7.3)
Captures all fields from a CSV file's line. Can be customized with user-defined field separator and protecting character.
Submitted by
Various
-
9 years ago
2014-10-15 13:22
51
191 upvotes, 140 downvotes (score 52.3%) (You must be signed in to vote)
Disorted Email Addresses
PCRE (PHP <7.3)
Matches distorted email addresses and converts them back to real ones.
Submitted by
dislick
-
11 years ago
2013-01-16 14:11
7
9 upvotes, 2 downvotes (score 52.3%) (You must be signed in to vote)
Sentence grabber /w extra check
PCRE (PHP <7.3)
Grabs sentences including terms like: e.g. z.b. Figs.These get caught in 1st capturing group. Problem: how to only accept matching sentences which contain pattern \b\d+[a-z]{0,2}\b?
Submitted by
light0
-
10 years ago
2014-05-29 17:30
7
9 upvotes, 2 downvotes (score 52.3%) (You must be signed in to vote)
Max - URL Extract
PCRE (PHP <7.3)
no description available
Submitted by
Ayush
-
8 years ago
2016-05-09 10:38
7
9 upvotes, 2 downvotes (score 52.3%) (You must be signed in to vote)
IPv4 Validator
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
2020-07-26 21:19
(Last modified 4 months ago)
2023-08-07 17:36
18
310 upvotes, 292 downvotes (score 52.3%) (You must be signed in to vote)
Date: DD-MM-YYYY hh:mm:ss
Recommended
This entry has been specifically selected by our team to be a great submission
PCRE (PHP <7.3)
Validate and capture dateTime parts, includes validation for leap years, range 1000-2999. Fixed bug
Submitted by
Ka.
-
11 years ago
2013-05-17 13:07
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
2
3
4
5
...
461
fix plot histogram calls
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
(
__Internal64
\.
PlotHistogram
(?:
2D
)?
(?:
_
\d
+
)?
\(
.
*
)
(
__arg
(?:
5
|
6
)
)
(
.
*
)
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
a year ago
2022-12-30 03:13