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,580 community submitted regex patterns...
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
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
spamk rule
PCRE (PHP <7.3)
recognize more than 1000 mails per today with this regex
Submitted by
alex kippar
-
8 years ago
2015-08-11 10:28
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
PTK:DateOfIssuance
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-11 08:46
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
find a valid SO file
PCRE (PHP <7.3)
This regex allow to validate a .so file (with an additional version)
Submitted by
anonymous
-
8 years ago
2015-08-11 08:07
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
find non-protocolized img src
PCRE (PHP <7.3)
Useful to expand links without a protocol header with a base url src="/bla/blubb" --> src="http:/foo.com/bla/blubb"
Submitted by
fjakop
-
8 years ago
2015-08-11 07:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Find Single Instance
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-10 18:19
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
sdf
PCRE (PHP <7.3)
f
Submitted by
f
-
8 years ago
2015-08-10 15:55
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
secure http header: cache-control
PCRE (PHP <7.3)
Check if HTTP Header of Cache-Control has all nessery values for highest security
Submitted by
Nils Werner
-
8 years ago
2015-08-10 12:36
1
...
521
522
523
524
525
526
527
...
579
Extract values from log
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(?:
"
?
(
[^
"
]
*
)
"
?
,
){2}
/
U
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
8 years ago
2015-06-29 14:54