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
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 7.0 (C#)
Rust
Sponsors
Community Patterns
Search among 13,640 community submitted regex patterns...
0
Example where regex is not matching device id value
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
Replace <?= $variable ?> with <?= purify($variable) ?>
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2
Complete Machine Readable Passport pattern
PCRE (PHP <7.3)
Regex to identify and split the components of a machine readable passport pattern text
Submitted by
Igor Ferreira
-
8 years ago
1
reg example
Python
no description available
Submitted by
horangs
-
8 years ago
1
MRZ Line 1
PCRE (PHP <7.3)
Machine Readable passport rule for first line
Submitted by
Igor Ferreira
-
8 years ago
1
MRZ Line 2
PCRE (PHP <7.3)
Machine readable passport rule for the second line
Submitted by
Igor Ferreira
-
8 years ago
1
LDAP basedn check
PCRE (PHP <7.3)
Check a given LDAP base DN with or without a hostname
Submitted by
Daywalker
-
8 years ago
1
Mexico Phones Number
PCRE (PHP <7.3)
telefonos en mexico
Submitted by
whereisanddy
-
8 years ago
1
weapons list
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
making things into columns
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
finding phone numbers
PCRE (PHP <7.3)
we know phone numbers are [one group of 3 numbers] [another group of 3 numbers] [a group of 4 numbers] we use D? as a way to find nondigits like the parenthesis This should also work: \(?\d{3}\)?\s?-?.?\d{3}\
Submitted by
anonymous
-
8 years ago
2
the many john smiths
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
phone number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
Select last symbol in string
PCRE (PHP <7.3)
This regexp selected random last symbol in string.
Submitted by
Folleah
-
8 years ago
1
"Attached file" Virus
PCRE (PHP <7.3)
MailCleaner attachment name expression.
Submitted by
Robin Toy - Strobe Technologies Ltd
-
8 years ago
0
Strings with length multiple of 3 or 5
PCRE (PHP <7.3)
Lines with length multiple of 3 or 5.
Submitted by
ismtabo
-
8 years ago
1
Test No Match
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
ISO8601 Date Interval
PCRE (PHP <7.3)
ISO8601 Date Interval with support for fractional values and repeating intervals. DOES NOT SUPPORT fixed intervals (e.g. 2016-03-22P3D or 2016-03-22T14:00Z--2016-03-2518:00+02:00). See https://regex101.com/r/iN2zO9/1 for a ISO8601 date time regex.
Submitted by
Tobias Marstaller
-
8 years ago
1
ISO8601 DateTime
PCRE (PHP <7.3)
Matches an ISO8601 date time string, including fractional time. Does not exclude non-existent times (such as the 29th february in non-leap-years)
Submitted by
Tobias Marstaller
-
8 years ago
3
Escherichia coli, partial genome simple coding region search
PCRE (PHP <7.3)
NC_000913.3 Escherichia coli str. K-12 substr. MG1655, patial genome
Submitted by
anonymous
-
8 years ago
1
...
536
537
538
539
540
...
682
Portugal mobile phone numbers
0
Regular Expression
PCRE (PHP <7.3)
/
^
(
\+
?
351
)?
9
\d\d
{7}
$
/
Open regex in editor
Description
Matches current mobile phone numbers in Portugal
Submitted by
Carlos Interactive3g
-
9 years ago