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,780 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
-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
3 upvotes, 6 downvotes (score 12.1%) (You must be signed in to vote)
Regular Expression For Phone Number Validation
ECMAScript (JavaScript)
no description available
Submitted by
Brian Jemilo II
-
10 years ago
2014-04-23 20:12
-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)
s
ECMAScript (JavaScript)
s
Submitted by
anonymous
-
10 years ago
2014-04-29 20:44
-3
3 upvotes, 6 downvotes (score 12.1%) (You must be signed in to vote)
1111
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
2014-05-05 06:42
-3
5 upvotes, 8 downvotes (score 17.7%) (You must be signed in to vote)
111
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
2014-05-05 06:42
-3
4 upvotes, 7 downvotes (score 15.2%) (You must be signed in to vote)
111
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
2014-05-05 06:42
-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)
Number
ECMAScript (JavaScript)
Gets all numbers in a string. This includes positive and negative numbers aswell as integers and floats. By: http://www.benlorantfy.com/
Submitted by
Ben
-
9 years ago
2014-07-13 16:14
-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
3 upvotes, 6 downvotes (score 12.1%) (You must be signed in to vote)
Regex for minimum specific character length
ECMAScript (JavaScript)
Hi All, I'm currently having an issue regarding writing regex to check minimum length of specific character. My case is for phone number. E.g. Phone number required at leat 8 character and max 19 character. However, people are allowed to write with 'space' character in between and that 'space' sho...
Submitted by
krisha
-
9 years ago
2014-10-29 07:11
-3
1 upvotes, 4 downvotes (score 3.6%) (You must be signed in to vote)
Detect a numeric string
ECMAScript (JavaScript)
no description available
Submitted by
Ankur Chauhan
-
9 years ago
2015-01-08 22:59
1
2
3
4
...
639
Replace letters in email address
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(?!
^
)
[^
@
]
(?=
.
+
@
)
(?!
$
)
/
sg
Open regex in editor
Description
Loading markdown...
Submitted by
Kaibo
-
9 months ago
2023-03-16 16:00