Regular
Expressions
101
Please wait while the app is loading...
Please enable JavaScript to use this web application.
Regular
Expressions
101
@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
What's new?
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Regex Library
Regex Library
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Order By
Most Recent
Most Points
Fewest Points
Filter by Flavor
PCRE2
PCRE
ECMAScript
Python
Golang
Java
.NET
Sponsors
All your environment variables, in one place
Library entries
Search library
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
match non-regular words
no description available
Submitted by
Jason
-
7 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
password8s
password con 8
Submitted by
anonymous
-
7 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
men
no description available
Submitted by
anonymous
-
7 years ago
2
2 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Credit Card (Master/Visa)
Searches for credit card numbers from MasterCard or visa
Submitted by
SamPad
-
7 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Getting video urls from content
For use on wordpress on multisite. Finds mp4 videos within the content.
Submitted by
Mike Kormendy
-
7 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
IPv4 addresses that don't match RFC1918
Matches publicly available IPv4 addresses (excludes 10., 172.16-32, and 192.168 blocks).
Submitted by
anonymous
-
7 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
javascript
Todo Comments
no description available
Submitted by
Marvin Hagemeister
-
7 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Liberal URL detector
Detects almost all URLs contained in a sentence
Submitted by
https://gist.github.com/gruber
-
7 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
<a href="([^"]*)"[^<]*>(?:(?!<\/?a\b[^<]*>)[\s\S])*<img src="([^"]*)"\
no description available
Submitted by
Ivan Vlajic
-
7 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
remove specific div
removes divs of the print class
Submitted by
Nicolaj
-
7 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
pcre
IP adress or masks
Match any IP adress or Subnet masks and split all bytes in capture groups
Submitted by
SkullPand4
-
7 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
URL Match and split
match any type of url and split each part (protocol, domain, page, GET, and ID) in capture groups
Submitted by
anonymous
-
7 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Text by word tail-trimming regex pattern
no description available
Submitted by
anonymous
-
7 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
Teaching potatoes how to search
You see how it matches the hit ratio line? Yeah m8, that simple
Submitted by
11" Mipsmagician
-
7 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
match @user but not email@example.com
for finding user mentions in markdown-like comments
Submitted by
Holger Schmidt (https://github.com/forger)
-
7 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Gaddafi
Matches all spellings of the name Gaddafi that I've yet discovered.
Submitted by
Klisz
-
7 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
url segment parsing
URL Parsing
Submitted by
Ricardo Cantu
-
7 years ago
0
1 upvotes, 1 downvotes (50% like it) (You must be signed in to vote)
javascript
test
no description available
Submitted by
anonymous
-
7 years ago
0
2 upvotes, 2 downvotes (50% like it) (You must be signed in to vote)
pcre
Substring Matching Word, Hyphen, Underscores and Digits
Matches customer portion of call detail records found in the fields dcontext, lastdata, and usefield of an Asterisk CDR table. Additional processing required to get fully clean values.
Submitted by
lindstrom
-
7 years ago
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
tag remover
remove html tags, while leaving text in between
Submitted by
anonymous
-
7 years ago
1
...
629
630
631
632
633
634
635
...
847
Stone
Vote
1
1 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
Regular Expression
pcre
/
^
(?<date>
\d
{4}
-
\d
{2}
-
\d
{2}
\s\d
{2}
:
\d
{2}
:
\d
{2}
)
\|\|
(?<key>
[^
\|
]
+
)
\|\|
(?<level>
[^
\|
]
+
)
\|\|
(?<info>
[^
\|
\n
]
+
)
(?:
\|\|
(?<optional>
[
\S\s
]
*
?
)
(?=
\d
{4}
-
\d
{2}
-
\d
{2}
\s\d
{2}
:
\d
{2}
:
\d
{2}
\|\|
[^
\|
]
+
\|\|
[^
\|
]
+
)
)?
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
mralves
- 7 years ago