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
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 11,900 community submitted regex patterns...
1
Capture MSSQL tables and their potential aliases
PCRE (PHP <7.3)
Searches simple Select-From-Where style queries for tables and their aliases (if they have any). Doesn't properly handle subqueries used in place of tables!
Submitted by
Tsaukpaetra
-
8 years ago
1
US Zipcode Validator
PCRE (PHP <7.3)
Validation rule: not empty numeric only allow "XXXXX", "XXXXX XXXX", or "XXXXX-XXXX" first 5 digits cannot be "00000" (so "00000", "00000 XXXX" and "00000-XXXX" will be regected)
Submitted by
Zheyang Song
-
8 years ago
1
extract price from text
PCRE (PHP <7.3)
no description available
Submitted by
mku
-
8 years ago
1
Line feeds to html paragraphs
PCRE (PHP <7.3)
Take the text from a textarea and surround text delimited with newlines with p-tags
Submitted by
Bob M
-
8 years ago
1
URL-http(s)
PCRE (PHP <7.3)
Tests for valid http or https protocol URL. *2 groups- one for protocol,domain, and any subdomains; and one for path, query, params, and fragments(if any. The following WILL match: http://foo.com/blah_blah http://foo.com/blah_blah/...
Submitted by
Brennan
-
8 years ago
1
Singapore and Malaysia Mobile numbers
PCRE (PHP <7.3)
Singapore and Malaysia Mobile numbers
Submitted by
Harsh Gupta
-
8 years ago
1
UK Postcode
PCRE (PHP <7.3)
as per the following specifications: FORMAT EXAMPLE AN NAA M1 1AA ANN NAA M60 1NW AAN NAA CR2 6XH...
Submitted by
Spluf (Cosmin Pop)
-
8 years ago
1
Thai mobile phone
PCRE (PHP <7.3)
Start with 0 and the second character is 6|8|9 Thai mobile phone number up to 10
Submitted by
anonymous
-
7 years ago
1
Matching decimals in european format (dot as grouping separator, comma as decimal separator)
Java 8
A regex for validating decimal numbers in the European number format (in many parts of Europe at least, including Germany). A comma is used as a separator for the decimal number, a dot as a separator for thousand places.
Submitted by
Florian Drees
-
3 years ago
(Last modified 3 years ago)
1
Test expression
PCRE2 (PHP >=7.3)
To find at most 3 a in string
Submitted by
anonymous
-
3 years ago
1
PHP North American Phone Number
PCRE2 (PHP >=7.3)
Format phone numbers to look nice! E.g. 12345678900 --> +1(234)-567-8900 Matches with most ways numbers are stored 1.234.567.8900 1 234 567 8900...
Submitted by
Mendel Groner
-
3 years ago
1
Password - mot de passe
PCRE2 (PHP >=7.3)
1 caractère minuscule minimum 1 caractère majuscule minimum 1 chiffre minimum 1 caractère spécial minimum pas d'espace 8 caractères minimum en tout
Submitted by
Sofiane
-
2 years ago
1
bridal quality
PCRE (PHP <7.3)
no description available
Submitted by
mine
-
11 years ago
1
why this matches?
PCRE (PHP <7.3)
no description available
Submitted by
romans
-
11 years ago
1
{if}{endif} matcher
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
1
saja
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
1
Check SQL Insert Into
PCRE (PHP <7.3)
no description available
Submitted by
MelRight
-
11 years ago
1
tags, tags in quotes
PCRE (PHP <7.3)
#day tralalala #"day" tralalala #'beautiful_day'
Submitted by
voodoo free.dev.ua@gmail.
-
11 years ago
1
rfrf
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
...
37
38
39
40
41
...
595
p with a
0
Regular Expression
PCRE2 (PHP >=7.3)
/
(?:
<
[
pP
]
>
)?
(?:
<strong>
)
(?:
<br
\/
>
)?
(?:
<
[
aA
]
\s\w
+
="
(
[
?0
-
9–
\-\/
\w
ÅåÄäÖö;,.()
\[\]
&
\s
]
+
)
">
(?:
<
\/
[
aA
]
>
)?
)
(
[
?0
-
9–
\-\/
\w
ÅåÄäÖö;,.()
\[\]
&
\s
]
+
)
(?:
<
\/
strong>
)
(
[
?0
-
9–
\-\/
\w
ÅåÄäÖö;,.()
\[\]
&
\s
]
+
)
/
gmi
Open regex in editor
Description
no description available
Submitted by
anonymous
-
3 years ago