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 17,400 community submitted regex patterns...
13
53 upvotes, 40 downvotes (score 46.8%) (You must be signed in to vote)
regex101.com id grabber
PCRE (PHP <7.3)
grabs the ID for the regex101.com permalink to code
Submitted by
chris mccoy
-
9 years ago
2014-08-19 16:10
6
9 upvotes, 3 downvotes (score 46.8%) (You must be signed in to vote)
ID003 device info
PCRE (PHP <7.3)
no description available
Submitted by
sasjaq
-
10 years ago
2014-03-12 09:38
6
9 upvotes, 3 downvotes (score 46.8%) (You must be signed in to vote)
Validate Birth Date (d/m/Y)
PCRE (PHP <7.3)
From 1970 to 2015 Replace: (\d{4})$ for (19[7-9]\d|200-1)$
Submitted by
Valdeir Santana
-
8 years ago
2015-11-20 05:28
14
92 upvotes, 78 downvotes (score 46.6%) (You must be signed in to vote)
Phone Number
ECMAScript (JavaScript)
Allows phone numbers with optional country code, optional special characters and whitespace
Submitted by
Tlmader
-
8 years ago
2015-08-11 17:07
13
76 upvotes, 63 downvotes (score 46.4%) (You must be signed in to vote)
URL Validator
PCRE (PHP <7.3)
Validates - URLs with schemes - http, https and ftp Relative URL starting with / and ../
Submitted by
anonymous
-
9 years ago
2014-09-24 08:41
8
17 upvotes, 9 downvotes (score 46.2%) (You must be signed in to vote)
Alphanumeric and Spaces
PCRE (PHP <7.3)
Alow alphanumeric characters and spaces
Submitted by
JTN
-
8 years ago
2015-08-22 06:46
(Last modified 4 months ago)
2023-07-20 10:55
11
42 upvotes, 31 downvotes (score 46.1%) (You must be signed in to vote)
Date(Including Leap Year) YYYY-MM-DD hh:mm:ss
PCRE (PHP <7.3)
Validates DateTime of format YYYY-MM-DD hh:mm:ss including Leap Year
Submitted by
Madhan
-
10 years ago
2014-03-14 16:49
8
18 upvotes, 10 downvotes (score 45.8%) (You must be signed in to vote)
Date time Advanced
PCRE (PHP <7.3)
no description available
Submitted by
Mr.Neutro
-
10 years ago
2013-12-03 19:19
7
14 upvotes, 7 downvotes (score 45.4%) (You must be signed in to vote)
PAN CARD validation
PCRE (PHP <7.3)
checks for valid PAN card for Indian users.
Submitted by
karan thakkar
-
10 years ago
2014-05-06 07:06
6
10 upvotes, 4 downvotes (score 45.4%) (You must be signed in to vote)
Split quotes and single words
ECMAScript (JavaScript)
Find " and ' quoted strings and "orphaned"/single words in a string
Submitted by
LoveIsGrief
-
10 years ago
2013-12-29 18:41
6
150 upvotes, 144 downvotes (score 45.3%) (You must be signed in to vote)
Password
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
2013-12-06 14:02
(Last modified 4 months ago)
2023-07-21 04:59
5
7 upvotes, 2 downvotes (score 45.3%) (You must be signed in to vote)
parsing CSV file
PCRE (PHP <7.3)
It correctly handles simple values, empty values, and quoted values with commas inside.
Submitted by
Viktor Lova aka nsinreal
-
9 years ago
2015-03-09 19:02
5
7 upvotes, 2 downvotes (score 45.3%) (You must be signed in to vote)
Latitude,Longitude fetcher
PCRE (PHP <7.3)
Useful to work with GoogleMap API.
Submitted by
anonymous
-
8 years ago
2015-08-07 08:25
5
7 upvotes, 2 downvotes (score 45.3%) (You must be signed in to vote)
Password strength
ECMAScript (JavaScript)
Regular expression for password validation Rules: 8-120 chars no spaces must contain at least one a-z char must contain at least one A-Z char...
Submitted by
@razvanz
-
8 years ago
2015-08-20 14:32
5
7 upvotes, 2 downvotes (score 45.3%) (You must be signed in to vote)
ipv6
PCRE (PHP <7.3)
Match an ipv6 address
Submitted by
Frusty
-
8 years ago
2016-05-25 09:37
9
35 upvotes, 26 downvotes (score 44.9%) (You must be signed in to vote)
only numbers
PCRE (PHP <7.3)
A string with only numbers in
Submitted by
Gotts
-
8 years ago
2015-11-26 16:19
9
67 upvotes, 58 downvotes (score 44.9%) (You must be signed in to vote)
Youtube ID match
PCRE (PHP <7.3)
This regex will match any Youtube video ID thrown at it and return one capturing group containing the ID.
Submitted by
Jacob Overgaard
-
10 years ago
2013-11-28 13:30
8
23 upvotes, 15 downvotes (score 44.7%) (You must be signed in to vote)
Validate Base64 single-line string
PCRE (PHP <7.3)
no description available
Submitted by
ka.
-
11 years ago
2013-05-31 00:35
6
11 upvotes, 5 downvotes (score 44.4%) (You must be signed in to vote)
search word with an accent
ECMAScript (JavaScript)
search any word with an accent
Submitted by
Thegner Pierre
-
8 years ago
2015-08-04 08:06
6
11 upvotes, 5 downvotes (score 44.4%) (You must be signed in to vote)
HTML tag stripper
PCRE (PHP <7.3)
This regex will identify all html start and end tags.
Submitted by
anonymous
-
8 years ago
2015-10-29 12:03
1
...
5
6
7
8
9
10
11
...
870
Latitude,Longitude fetcher
5
7 upvotes, 2 downvotes (score 45.3%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
^
(
[
-+
]
?
[
1
-
8
]
?
\d
(?:
\.
\d
+
)?
|
90
(?:
\.
0
+
)?
)
,
\s
*
(
[
-+
]
?
(?:
180
(?:
\.
0
+
)?
|
(?:
(?:
1
[
0
-
7
]
\d
)
|
(?:
[
1
-
9
]
?
\d
)
)
(?:
\.
\d
+
)?
)
)
$
/
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
8 years ago
2015-08-07 08:25