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 13,640 community submitted regex patterns...
-18
6 upvotes, 24 downvotes (score 9.5%) (You must be signed in to vote)
dd-mm-YYYY HH:mm:ss (year range 1000-2999)
PCRE (PHP <7.3)
Validate Gregorian calendar dates that contain 24-hour times. This will also correctly match the Feb 29 date when it falls on a valid leap year. Leap years occur every 4 years, with one exception: when a year is evenly divisible by 100 but not evenly divisible by 400, the year will not be a leap ye...
Submitted by
Ka.
-
11 years ago
2013-05-13 22:48
(Last modified 4 months ago)
2023-07-24 16:28
-4
1 upvotes, 5 downvotes (score 3%) (You must be signed in to vote)
Date with this format YYYY-MM-DD and year start 20 or 21
PCRE (PHP <7.3)
Date with this format YYYY-MM-DD and year start 20 or 21 like 2014
Submitted by
cisc0
-
10 years ago
2014-02-11 10:22
-4
4 upvotes, 8 downvotes (score 13.8%) (You must be signed in to vote)
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
-
8 years ago
2015-06-10 19:26
-4
0 upvotes, 4 downvotes (score 0%) (You must be signed in to vote)
Working With Data regex sample text
PCRE2 (PHP >=7.3)
This is a sample text for use at my "Working With Data" workshop session on regular expressions.
Submitted by
anonymous
-
2 years ago
2021-10-27 18:45
-3
1 upvotes, 4 downvotes (score 3.6%) (You must be signed in to vote)
DateTime YYYY-MM-DD hh:mm:ss
PCRE (PHP <7.3)
no description available
Submitted by
Madhan
-
10 years ago
2014-03-14 12:29
-3
3 upvotes, 6 downvotes (score 12.1%) (You must be signed in to vote)
Date and Time
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2014-03-25 16:35
-3
1 upvotes, 4 downvotes (score 3.6%) (You must be signed in to vote)
hjghj
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2014-04-21 12:53
-3
1 upvotes, 4 downvotes (score 3.6%) (You must be signed in to vote)
cake
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2014-04-24 03:42
-3
5 upvotes, 8 downvotes (score 17.7%) (You must be signed in to vote)
Latitude/longitude tester
PCRE (PHP <7.3)
Tests the string if it does contain valid latitude and longitude parameters
Submitted by
Doro
-
10 years ago
2014-04-29 11:33
-3
5 upvotes, 8 downvotes (score 17.7%) (You must be signed in to vote)
mail
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2014-04-29 13:17
-3
3 upvotes, 6 downvotes (score 12.1%) (You must be signed in to vote)
british postcode check
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2014-05-15 13:45
-3
3 upvotes, 6 downvotes (score 12.1%) (You must be signed in to vote)
British Postcode Check
PCRE (PHP <7.3)
no description available
Submitted by
guest
-
10 years ago
2014-05-15 13:46
-3
2 upvotes, 5 downvotes (score 8.2%) (You must be signed in to vote)
regex help
PCRE (PHP <7.3)
help please. i need regex,
Submitted by
James
-
9 years ago
2014-06-18 21:07
-3
3 upvotes, 6 downvotes (score 12.1%) (You must be signed in to vote)
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
-
9 years ago
2014-07-26 13:32
-3
1 upvotes, 4 downvotes (score 3.6%) (You must be signed in to vote)
mama
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-08-22 02:48
-3
6 upvotes, 9 downvotes (score 19.8%) (You must be signed in to vote)
Select a HTML table and all its innerHTML
PCRE (PHP <7.3)
no description available
Submitted by
@ixzy24
-
9 years ago
2015-04-15 19:49
-3
1 upvotes, 4 downvotes (score 3.6%) (You must be signed in to vote)
Match email addresses and get the mail provider as a group
PCRE (PHP <7.3)
no description available
Submitted by
Ole
-
8 years ago
2015-06-10 18:23
-3
4 upvotes, 7 downvotes (score 15.2%) (You must be signed in to vote)
RegEX for account code starting with 000-
PCRE (PHP <7.3)
no description available
Submitted by
Joe H
-
8 years ago
2015-06-15 17:55
-3
1 upvotes, 4 downvotes (score 3.6%) (You must be signed in to vote)
Telephone
PCRE (PHP <7.3)
Find Telephone
Submitted by
Mr.Fail
-
8 years ago
2015-06-16 14:32
-3
0 upvotes, 3 downvotes (score 0%) (You must be signed in to vote)
iOS.Strings
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-06-23 15:27
1
2
3
4
...
682
CSV line parsing
28
77 upvotes, 49 downvotes (score 52.4%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(?:
\s
*
(?:
\"
(
[^
\"
]
*
)
\"
|
(
[^
,
]
+
)
)
\s
*
,
?
)+
?
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
Various
-
9 years ago
2014-10-15 13:22