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 12,780 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Hashtag
PCRE (PHP <7.3)
To find hashtags. It also allows underscores (_), not sure if that is officially correct.
Submitted by
cad
-
8 years ago
2016-05-31 10:07
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Fax number Regx for all countries
PCRE (PHP <7.3)
Fax number Regx for all countries
Submitted by
Priya Viswanathan
-
8 years ago
2016-05-31 10:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Dates validation
PCRE (PHP <7.3)
Not accurate
Submitted by
anonymous
-
8 years ago
2016-05-31 08:52
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Percentage complete
PCRE (PHP <7.3)
no description available
Submitted by
Asif
-
8 years ago
2016-05-31 05:48
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Plant Ninja woocommerce product category rewrites
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2016-05-31 04:21
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Plant Ninja woocommerce product category rewrites
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2016-05-31 04:10
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
i
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2016-05-31 02:05
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
EDI parser - INVRPT 97A
PCRE (PHP <7.3)
INVRPT:D:97A
Submitted by
Ran Z
-
8 years ago
2016-05-30 23:13
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
EDI file
PCRE (PHP <7.3)
no description available
Submitted by
Ran Z
-
8 years ago
2016-05-30 23:10
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Spaces
PCRE (PHP <7.3)
Get all spaces in a string
Submitted by
anonymous
-
8 years ago
2016-05-30 15:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
potential shell
PCRE (PHP <7.3)
Potential malware/sheel signature
Submitted by
cedk / ced404
-
8 years ago
2016-05-30 13:06
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
matching+backreferencing method parameters
PCRE (PHP <7.3)
match a specific method name match a quoted double value for method parameter 1 match a quoted, specific string value for method parameter 2
Submitted by
nickleus
-
8 years ago
2016-05-30 08:51
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
username
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
2016-05-30 06:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
auto-complete
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2016-05-29 22:55
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Extracts table names from SELECT query
PCRE (PHP <7.3)
Finds table names in table list and subqueries. Table names are in group #1 of all matches One note. In case of table list (like SELECT * FROM table1, table2, etc) group#1 will contain all tables string (like "table1, table2, etc"). In case of subquery in a table list group#1 may contain also other ...
Submitted by
Mykhaylo Khodorev (mykhaylo.khodorev@gmail.com)
-
8 years ago
2016-05-29 22:34
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Wikipedia parse
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2016-05-29 21:36
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Find specific tag content
PCRE (PHP <7.3)
no description available
Submitted by
Ivan Milazzotti
-
8 years ago
2016-05-29 15:15
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Find </a>
PCRE (PHP <7.3)
no description available
Submitted by
Ivan Milazzotti
-
8 years ago
2016-05-29 14:19
4
4 upvotes, 0 downvotes (score 51%) (You must be signed in to vote)
Validates argentinian postal code
PCRE (PHP <7.3)
Validates the two valid postal codes in Argentina
Submitted by
Agustín Bouillet
-
8 years ago
2016-05-28 14:05
4
4 upvotes, 0 downvotes (score 51%) (You must be signed in to vote)
Validate Argentinian postal code
PCRE (PHP <7.3)
Validates CPA (Código Postal Argentino, spanish for Argentinian Postal Code).
Submitted by
Agustín Bouillet
-
8 years ago
2016-05-28 13:57
1
...
445
446
447
448
449
450
451
...
639
Detects IPv4 and IPv6 addresses
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
^
(?<ip_addr>
(
(
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
\.
\d
{1,3}
)
|
(
((
[
\d
a
-
fA
-
F
]
{1,4}
:
){7})
(
[
\d
a
-
fA
-
F
]
{1,4}
)
$
|
((
[
\d
a
-
fA
-
F
]
{1,4}
:
){1,6}
:
)
((
[
\d
a
-
fA
-
F
]
{1,4}
:
){0,4})
(
[
\d
a
-
fA
-
F
]
{1,4}
)
)
|
(
::
[
\d
a
-
fA
-
F
]
{1,4}
)
|
(
(
[
\d
a
-
fA
-
F
]
{1,4}
:
){0,7}
[
\d
a
-
fA
-
F
]
{1,4}
::
)
)
)
$
/
mg
Open regex in editor
Description
Loading markdown...
Submitted by
Alan
-
8 years ago
2016-05-27 20:28