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)
aaaaaaaaaaa
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-14 07:25
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
gfghfgdf
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-14 07:24
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Get a xls file from URL
PCRE (PHP <7.3)
no description available
Submitted by
Huan
-
8 years ago
2015-08-14 04:32
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
inline img
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-14 02:19
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Find your Db from a sql query
PCRE (PHP <7.3)
A regex to find the db wich you're quering against to.
Submitted by
kkrico
-
8 years ago
2015-08-13 14:46
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
viduregex
PCRE (PHP <7.3)
cac vi du ve bat cac chuoi o regex
Submitted by
thieutham
-
8 years ago
2015-08-13 07:24
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
viduregex
PCRE (PHP <7.3)
cac vi du ve bat cac chuoi o regex
Submitted by
thieutham
-
8 years ago
2015-08-13 07:24
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Numbers - decimal, scientific etc
PCRE (PHP <7.3)
Matches numbers in most forms - normal, decimal, exponential, comma separted
Submitted by
Shashwat Black
-
8 years ago
2015-08-13 04:37
3
6 upvotes, 3 downvotes (score 35.4%) (You must be signed in to vote)
Invalid Unicode characters in XML
PCRE (PHP <7.3)
This pattern matches all the Unicode characters that are not allowed in an XML document. It's based on the Wikipedia article "Valid characters in XML".
Submitted by
Aaron Wells
-
8 years ago
2015-08-12 23:19
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
email
PCRE (PHP <7.3)
accept empty spaces at start and end
Submitted by
Emanuel Lima (jose.emanuel.lima@gmail.com)
-
8 years ago
2015-08-12 22:14
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
remove n lines after matching pattern
PCRE (PHP <7.3)
stackoverflow question
Submitted by
irom77
-
8 years ago
2015-08-12 20:23
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
currency
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-12 20:06
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Find all Internet Explorer 11.x pkgmgr packages
PCRE (PHP <7.3)
This regex can be used to find all of the packages (.mum) files in the WINDIR%\servicing\Packages directory. I used it to remove the update packages from Winodws 7 pkgmgr /up:"filename" /norestart /quiet
Submitted by
Pressanykey
-
8 years ago
2015-08-12 13:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Get text within pipe placeholders
PCRE (PHP <7.3)
Will return all matches of text between pipe placeholders, e.g. "This text has |two| placeholders |inside| of it" will return matches for two and inside.
Submitted by
Eddie Y
-
8 years ago
2015-08-12 13:31
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
URL detector
PCRE (PHP <7.3)
no description available
Submitted by
pawel
-
8 years ago
2015-08-12 11:08
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Full URI Mapping
PCRE (PHP <7.3)
Everything, including proto, user:pass, host, query params and anchors
Submitted by
baadf00d
-
8 years ago
2015-08-11 22:13
0
2 upvotes, 2 downvotes (score 15%) (You must be signed in to vote)
Select everything outside of table tags
PCRE (PHP <7.3)
no description available
Submitted by
ReijMan
-
8 years ago
2015-08-11 13:43
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
ms internet explorer vesion <= 8
PCRE (PHP <7.3)
Check version of internet explorer - if is it usable for html5 support etc.
Submitted by
tomish.net
-
8 years ago
2015-08-11 12:53
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Apache/Nginx Logs parsing
PCRE (PHP <7.3)
Log Format - combined + cookie at the end. Pattern Desc - combined for all groups.
Submitted by
Samuil Dichev
-
8 years ago
2015-08-11 10:29
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Apache/Nginx log parser with Cookie
PCRE (PHP <7.3)
Format - cookie_combined Pattern - combined for all groups
Submitted by
Samuil Dichev
-
8 years ago
2015-08-11 10:28
1
...
515
516
517
518
519
520
521
...
574
phone valid
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
^
(?:
(?:
\(
?
(?:
00
|
\+
)
(
[
1
-
4
]
\d\d
|
[
1
-
9
]
\d
?
)
\)
?
)?
[
\-\.\
\\\/
]
?
)?
(
(?:
\(
?
\d
{1,}
\)
?
[
\-\.\
\\\/
]
?
){5,}
)
(?:
[
\-\.\
\\\/
]
?
(?:
#
|
ext
\.
?
|
extension
|
x
)
[
\-\.\
\\\/
]
?
(
\d
+
)
)?
$
/
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
8 years ago
2015-07-21 17:06