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...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Extract jsfiddle links
PCRE (PHP <7.3)
Extract jsfiddle links
Submitted by
Shrinivas Shukla
-
8 years ago
2015-07-24 08:36
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Registration Email Address
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-07-24 05:34
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
url and path match with or without http|https
PCRE (PHP <7.3)
this is the most perfect pattern I reach for url with query or anchor
Submitted by
Gehad Mohamed
-
8 years ago
2015-07-24 01:29
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Single lone digits
PCRE (PHP <7.3)
Find single digits that are not part of an integer. For example, "27" should not match, but "27.1" will match the "1". "27.11" won't match.
Submitted by
Conan Dombroski
-
8 years ago
2015-07-23 20:25
0
2 upvotes, 2 downvotes (score 15%) (You must be signed in to vote)
/[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-07-23 17:23
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
python:S117
PCRE (PHP <7.3)
Local variable and function parameter names should comply with a naming convention
Submitted by
anonymous
-
8 years ago
2015-07-23 15:46
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Nickname
PCRE (PHP <7.3)
Nickname validation. Only: letters _ One line. Tested with RoR
Submitted by
Paramoshkin Andrew
-
8 years ago
2015-07-23 12:07
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
add colon between hours and minutes to time (24h system)
PCRE (PHP <7.3)
This expression converts any 3- or 4 digit timevalue to a value with colon between hours and minutes. So 345 is converted to 3:45 and 1500 is converted to 15:00
Submitted by
Patrick Sinke
-
8 years ago
2015-07-23 11:34
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Facebook url regex
PCRE (PHP <7.3)
no description available
Submitted by
Devs Devaras
-
8 years ago
2015-07-23 09:49
-3
1 upvotes, 4 downvotes (score 3.6%) (You must be signed in to vote)
Facebook url regex
PCRE (PHP <7.3)
no description available
Submitted by
Devs Devaras
-
8 years ago
2015-07-23 09:49
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
tag searching
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-07-22 16:32
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
require, require_once, include, include_once search
PCRE (PHP <7.3)
no description available
Submitted by
zooli
-
8 years ago
2015-07-22 15:44
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
my apache2 access.log regex
PCRE (PHP <7.3)
google.com:80 212.111.203.171 - - [02/Mar/2015:10:27:04 +0000] "GET /css/style.css HTTP/1.1" 304 138 "http://google.com" "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36"
Submitted by
marf
-
8 years ago
2015-07-22 10:48
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
Mathematical Expressions
PCRE (PHP <7.3)
ValidatesMathematical Expressions. Ignores whitespace. Includes parenthesis matching.
Submitted by
Jeremy Friesen
-
8 years ago
2015-07-21 21:28
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
TimeFormatParser
PCRE (PHP <7.3)
This allows to the programer to match the time format groups, in a way that allow to discard some parts of the format. E.g. I have a format HhMmSs and i want to ignore the 'Ss' part from the format when I have no Seconds
Submitted by
Fausto A. Guerrero
-
8 years ago
2015-07-21 20:43
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
GET EMAIL INFO (3)
PCRE (PHP <7.3)
Get Gmail tag, user and domain of an email address. -- Fixed the bug that the label doesn't match if there are an dot on user.
Submitted by
Matías Pizarro González
-
8 years ago
2015-07-21 20:19
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Get email info (2)
PCRE (PHP <7.3)
Get Gmail tag, user and domain of an email address. -- Fixed the bug that the label be obligatory
Submitted by
Matías Pizarro González
-
8 years ago
2015-07-21 20:03
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Get email info
PCRE (PHP <7.3)
Get Gmail tag, user and domain of an email address
Submitted by
Matías Pizarro González
-
8 years ago
2015-07-21 19:57
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Phone numbers
PCRE (PHP <7.3)
PHP
Submitted by
anonymous
-
8 years ago
2015-07-21 19:25
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Simple email splitter
PCRE (PHP <7.3)
Split the email and get the user and domain.
Submitted by
Matías Pizarro González
-
8 years ago
2015-07-21 18:58
1
...
520
521
522
523
524
525
526
...
574
111
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
<Row>w
+
/
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
8 years ago
2015-06-26 07:26