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,560 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
PHP identifier
PCRE (PHP <7.3)
The official expression used for variable names, class names, etc. From http://www.php.net/manual/en/language.variables.basics.php
Submitted by
anonymous
-
8 years ago
2015-11-14 09:55
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Publicly addressable IP addresses, excluding private ranges.
PCRE (PHP <7.3)
Valid IP Octets include: 1-9 & 11-223, then 0-255, twice, then 1-254 but with no leading zeroes. This will exclude the 10.0.0/8 private IP range, the reserved and multi-cast range, 224.0.0.0 and up, as well as the private IP ranges 172.16.0.0/12 and 192.168.0.0/16. In other words, this will addres...
Submitted by
Schvenn
-
8 years ago
2015-11-14 07:57
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Parse Query segment from URL path
PCRE (PHP <7.3)
no description available
Submitted by
Matthew Marcus
-
8 years ago
2015-11-14 01:02
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Url Parser for Alpha(Dash Numeric) Pattern
PCRE (PHP <7.3)
a-123-2134
Submitted by
Matthew Marcus
-
8 years ago
2015-11-13 22:21
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Cookie body
PCRE (PHP <7.3)
Get the body of a specific cookie from an HTTP header.
Submitted by
anonymous
-
8 years ago
2015-11-13 14:46
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
-
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-11-13 14:33
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
select in tag - with no tag
PCRE (PHP <7.3)
as title
Submitted by
Wiktor
-
8 years ago
2015-11-13 12:17
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
url extractor
PCRE (PHP <7.3)
Will extract URLs from text string if they have a space or line ending at the end and are not wrapped inside a string delimiter
Submitted by
pip
-
8 years ago
2015-11-13 09:00
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
ethtool_speed
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-11-13 03:43
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
phone services
PCRE (PHP <7.3)
no description available
Submitted by
Lam Nguyen
-
8 years ago
2015-11-12 19:40
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Minecraft Crashlog Mod Errored
PCRE (PHP <7.3)
Use this to find wich mods (in Minecraft, Forge) errored out in the Crashlog
Submitted by
anonymous
-
8 years ago
2015-11-12 19:24
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Akamai Logs
PCRE (PHP <7.3)
Akamai Logs
Submitted by
wzr
-
8 years ago
2015-11-12 15:31
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Parse Entire URL
PCRE (PHP <7.3)
This regex is a mashup that strips protocol, domain and URI into seperate capture groups.
Submitted by
Robert Kozora
-
8 years ago
2015-11-12 15:09
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Detect Adobe Edge file
PCRE (PHP <7.3)
no description available
Submitted by
gerezs
-
8 years ago
2015-11-12 13:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Asian characters
PCRE (PHP <7.3)
Detects hiragana, katakana, kanji and japanese alphabet
Submitted by
anonymous
-
8 years ago
2015-11-12 11:20
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
remove empty html paragraph tags
PCRE (PHP <7.3)
no description available
Submitted by
acor3
-
8 years ago
2015-11-12 10:11
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Dutch Zip Code Checker
PCRE (PHP <7.3)
/^1-9{3} ?(?!sa|sd|ss)[a-z]{2}$/i
Submitted by
Steven Moseley
-
8 years ago
2015-11-12 09:48
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Email
PCRE (PHP <7.3)
Find a bunch of different types of email with this RegEx
Submitted by
anonymous
-
8 years ago
2015-11-11 22:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Find integer in quotes
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-11-11 14:06
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
GHS - PF LIMIT EXTRACTOR
PCRE (PHP <7.3)
Extracts from a PF file the summary table from the RAH command
Submitted by
anonymous
-
8 years ago
2015-11-11 13:47
1
...
492
493
494
495
496
497
498
...
578
Search CSV line for foobar matches
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(?:
(?:
\,
[
,^.
]
{0,}
|
^
)
(
foobar
)
[
,^.
]
{0,}
)
/
g
Open regex in editor
Description
Loading markdown...
Submitted by
Balmark
-
8 years ago
2015-10-22 14:08