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,660 community submitted regex patterns...
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
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Secure HTTP Header: Public-Key-Pins
PCRE (PHP <7.3)
Check if HTTP Header of Public-Key-Pins has all nessery values for highest security
Submitted by
Nils Werner
-
8 years ago
2015-08-10 12:33
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Phone Number (msisdn) filter
PCRE (PHP <7.3)
MSISDN filter. Should match worldwide phone numbers. It doesn't work for numbers with dashes, so just replace them with empty strings, or edit as you wish.
Submitted by
maricn
-
8 years ago
2015-08-10 10:45
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Timestamp from json
PCRE (PHP <7.3)
no description available
Submitted by
Thomas Khalil
-
8 years ago
2015-08-09 22:56
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
parse velocity variables
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-09 09:32
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Does not match
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-07 18:27
1
...
525
526
527
528
529
530
531
...
583
Div content
3
4 upvotes, 1 downvotes (score 37.6%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
<div
[^
>
]
*
>
(
(?:
(?:
(?!
<div
[^
>
]
*
>
|
<
\/
div>
)
.
)+
|
<div
[^
>
]
*
>
(?1)
<
\/
div>
)*
)
<
\/
div>
/
isg
Open regex in editor
Description
Loading markdown...
Submitted by
mohammadsaleh
-
8 years ago
2015-06-23 08:44