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,000 community submitted regex patterns...
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
xml encoding detection
PCRE (PHP <7.3)
xml encoding detection encoding=(\"\S+")
Submitted by
anonymous
-
9 years ago
2014-11-13 09:13
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
replace all script sources
PCRE (PHP <7.3)
no description available
Submitted by
A. K. Asik
-
9 years ago
2014-11-13 06:10
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
wildcard url match with url
PCRE (PHP <7.3)
no description available
Submitted by
Ahosan Karim Asik
-
9 years ago
2014-11-13 05:38
2
4 upvotes, 2 downvotes (score 30%) (You must be signed in to vote)
Email validation
ECMAScript (JavaScript)
Very crude, but effective email validation.
Submitted by
Ryan Oaks
-
9 years ago
2014-11-11 21:35
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Number betwen:1 1.5 2 2.5
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-11-11 10:23
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
match sequential characters
ECMAScript (JavaScript)
HI, I'm looking for RegX to match words with more than two sequential characters
Submitted by
JC
-
9 years ago
2014-11-09 21:06
0
2 upvotes, 2 downvotes (score 15%) (You must be signed in to vote)
rr
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2014-11-09 20:56
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
MySql Definer
PCRE (PHP <7.3)
For find definer in mysql routines
Submitted by
Jorge Espinoza
-
9 years ago
2014-11-08 20:21
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Date validation
ECMAScript (JavaScript)
A regular expression to validate a Date in format DD/MM/YYYY
Submitted by
Felipe Montaña
-
9 years ago
2014-11-07 21:30
1
4 upvotes, 3 downvotes (score 25%) (You must be signed in to vote)
intl numbers
PCRE (PHP <7.3)
Good for valid numbers for international currencies - checks for accepted variations for thousands and decimal separators http://docs.oracle.com/cd/E19455-01/806-0169/overview-9/index.html
Submitted by
Arlen Tees
-
9 years ago
2014-11-07 19:04
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Regular Expression for Date
ECMAScript (JavaScript)
Regular expression for asp:RegularExpressionValidator with format MMddyy. i have resolved the issue for leap Year and month ending day as well.
Submitted by
Priyanka Khadilkar
-
9 years ago
2014-11-07 06:52
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Regular Expression For Date
ECMAScript (JavaScript)
Regular expression for asp:RegularExpressionValidator with format MMddyy. i have Resolved leap year issue as well as month ending day issue with Regular expression
Submitted by
Priyanka Khadilkar
-
9 years ago
2014-11-07 06:50
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
donotbackup
PCRE (PHP <7.3)
finding directories w/ donotbackup
Submitted by
anonymous
-
9 years ago
2014-11-06 21:21
0
3 upvotes, 3 downvotes (score 18.8%) (You must be signed in to vote)
Get all header tag (<hn>) in html file
PCRE (PHP <7.3)
This regex get all header tag in html file with tag included
Submitted by
Aubin
-
9 years ago
2014-11-06 17:10
3
10 upvotes, 7 downvotes (score 36%) (You must be signed in to vote)
UK Postcode Checker
PCRE (PHP <7.3)
This is an improvement of the very good tH9mQ1/1. It did not pickup on the first two postcodes found here: //http://en.wikipedia.org/wiki/Postcodes_in_the_United_Kingdom
Submitted by
Flexander
-
9 years ago
2014-11-06 11:41
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Date range match
PCRE (PHP <7.3)
This is not my creation, it is from a github repor
Submitted by
Saji N
-
9 years ago
2014-11-06 10:46
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Find CSS Class with ability to replace
ECMAScript (JavaScript)
Changing class names is hard with a large codebase written in multiple languages. Classes can appear in several constructs. This tries to match the various ways a class can be represented in HTML. Plug the RegEx in to Sublime Text 2 using "Find in Files...". When replacing in ST2, change $1 to \1.
Submitted by
Matthew (@sirlancelot)
-
9 years ago
2014-11-05 18:48
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Pasando carga de estilos css a twig
PCRE (PHP <7.3)
Esa expresion regular busca los href y les reemplazar el atributo por un asset()
Submitted by
Manuel Aguirre
-
9 years ago
2014-11-05 12:39
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
date validation
ECMAScript (JavaScript)
Validation for date 2013.12.24 14:50
Submitted by
axelprog
-
9 years ago
2014-11-04 14:51
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
1
...
621
622
623
624
625
626
627
...
650
Url regex testing
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Regular Expression
ECMAScript (JavaScript)
/
^
(
https
?
|
ftp
)
:
//
[^
\s
/$.?#
]
.
[^
\s
]
*
$
/
gmi
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
9 years ago
2014-10-23 18:00