Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 12,140 community submitted regex patterns...
4
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
1
sentence checker
PCRE (PHP <7.3)
This will check for any no of strings
Submitted by
noby nirmal
-
8 years ago
1
sentence regex
PCRE (PHP <7.3)
This regex will pick sentences.
Submitted by
noby nirmal
-
8 years ago
1
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") so it's necessary to do additional handing like splitting the string
Submitted by
Mykhaylo Khodorev (mykhaylo.khodorev@gmail.com)
-
8 years ago
1
Detects IPv4 and IPv6 addresses
PCRE (PHP <7.3)
This is loosely based on some other examples, but goes a bit further in terms of what it will and won't match. In particular, it matches IPv6 addresses like ff02::, ff02:1000::, and (the syntactically valid but improbable) ::0001:0002
Submitted by
Alan
-
8 years ago
1
CSV : Match values with carriage return
PCRE (PHP <7.3)
Use with csv with ";" delim. Matches values that contains carriage return not surrounded by double quotes.
Submitted by
anonymous
-
8 years ago
2
Match only first occurrence of word in a line.
PCRE (PHP <7.3)
Match only first occurrence of word in a line.
Submitted by
Vivek Shah
-
8 years ago
1
match non-regular words
PCRE (PHP <7.3)
no description available
Submitted by
Jason
-
8 years ago
1
password8s
PCRE (PHP <7.3)
password con 8
Submitted by
anonymous
-
8 years ago
1
men
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2
Credit Card (Master/Visa)
PCRE (PHP <7.3)
Searches for credit card numbers from MasterCard or visa
Submitted by
SamPad
-
8 years ago
1
Getting video urls from content
PCRE (PHP <7.3)
For use on wordpress on multisite. Finds mp4 videos within the content.
Submitted by
Mike Kormendy
-
8 years ago
0
IPv4 addresses that don't match RFC1918
PCRE (PHP <7.3)
Matches publicly available IPv4 addresses (excludes 10., 172.16-32, and 192.168 blocks).
Submitted by
anonymous
-
8 years ago
1
Liberal URL detector
PCRE (PHP <7.3)
Detects almost all URLs contained in a sentence
Submitted by
https://gist.github.com/gruber
-
8 years ago
1
<a href="([^"]*)"[^<]*>(?:(?!<\/?a\b[^<]*>)[\s\S])*<img src="([^"]*)"\
PCRE (PHP <7.3)
no description available
Submitted by
Ivan Vlajic
-
8 years ago
0
IP adress or masks
PCRE (PHP <7.3)
Match any IP adress or Subnet masks and split all bytes in capture groups
Submitted by
SkullPand4
-
8 years ago
1
URL Match and split
PCRE (PHP <7.3)
match any type of url and split each part (protocol, domain, page, GET, and ID) in capture groups
Submitted by
anonymous
-
8 years ago
1
Text by word tail-trimming regex pattern
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
match @user but not email@example.com
PCRE (PHP <7.3)
for finding user mentions in markdown-like comments
Submitted by
Holger Schmidt (https://github.com/forger)
-
8 years ago
1
Gaddafi
PCRE (PHP <7.3)
Matches all spellings of the name Gaddafi that I've yet discovered.
Submitted by
Klisz
-
8 years ago
1
...
464
465
466
467
468
...
607
Community Library Entry
1
Regular Expression
PCRE (PHP <7.3)
/
^
(
(
[
\€\$\¥\£
]
\s
?
)
(
\d
{1,3}
[
.
]
(
\d
{3}
[
.
]
)*
\d
{3}
|
\d
+
)
(
[
,
]
\d
{1,2}
)?
)
|
(
(
\d
{1,3}
[
.
]
(
\d
{3}
[
.
]
)*
\d
{3}
|
\d
+
)
(
[
,
]
\d
{1,2}
)?
(
\s
?
[
\€\$\¥\£
]
)?
)
$
/
Open regex in editor
Description
3.332.987,00 € $ 3 34,2 $
Submitted by
mattmezza
-
8 years ago