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...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
BEM for css
PCRE (PHP <7.3)
no description available
Submitted by
giacomozinetti
-
8 years ago
2015-08-17 10:10
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
hosts file parser
PCRE (PHP <7.3)
This expression parses hosts file lines and extracts IP, domains, commented lines. Yet doesn't support ending comments.
Submitted by
Jarek Wasilewski
-
8 years ago
2015-08-16 20:06
-1
2 upvotes, 3 downvotes (score 11.8%) (You must be signed in to vote)
Integers and Decimals
PCRE (PHP <7.3)
Matches integers and decimals with or without thousands grouping.
Submitted by
Franz Alex Gaisie-Essifie
-
8 years ago
2015-08-16 13:48
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
ip/host:port parser (proxy lists)
PCRE (PHP <7.3)
simple ip:port or host:port parser capturing ip or host and port, usually used for proxy lists
Submitted by
The Voider
-
8 years ago
2015-08-16 03:11
4
4 upvotes, 0 downvotes (score 51%) (You must be signed in to vote)
TV series season and episode names
PCRE (PHP <7.3)
This regex matches against season and series names
Submitted by
mikey
-
8 years ago
2015-08-16 00:43
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Shortcode_filter
PCRE (PHP <7.3)
CLeans your HTML code from shortcodes and images :)
Submitted by
Colta Victor
-
8 years ago
2015-08-15 11:15
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Matches Content-Type field of HTTP response
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-14 17:53
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Anagram match of "poultryoutwitsants"
PCRE (PHP <7.3)
this is an anagram matcher to run upon words
Submitted by
sp90
-
8 years ago
2015-08-14 12:57
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
get class
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-14 07:53
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
1
...
524
525
526
527
528
529
530
...
583
Phone Number Extraction
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(?:
\+
?
(?<COUNTRY_CODE>
\d
{1}
)?
-
?
\(
?
(?<AREA_CODE>
\d
{3}
)
\)
?
[
\s
-
\.
]
?
)?
(?<PART1>
\d
{3}
)
[
\s
-
\.
]
?
(?<PART2>
\d
{4}
)
[
\s
-
\.
]
?
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
codedude
-
8 years ago
2015-07-21 16:51