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 9,420 community submitted regex patterns...
1
Isolate string in double or single quotes
PCRE (PHP <7.3)
Isolate strings inside double or single quotes
Submitted by
garsax
-
8 years ago
1
10-digit phone number with hyphens
PCRE (PHP <7.3)
Such as 333-333-1234. Does not test for valid sequences of digits. E.g. 000-000-0000 would pass.
Submitted by
anonymous
-
8 years ago
1
URL does not start with correct name
PCRE (PHP <7.3)
APPFW BLock URL
Submitted by
anonymous
-
8 years ago
1
find file name with file extension
PCRE (PHP <7.3)
find file name with file extension
Submitted by
rainyseason
-
8 years ago
1
Decimal Numbers (+/-)
PCRE (PHP <7.3)
no description available
Submitted by
Zain
-
8 years ago
1
numbers between 200 and 3000
PCRE (PHP <7.3)
no description available
Submitted by
Bino
-
8 years ago
1
Top Level Domain (TLD)
PCRE (PHP <7.3)
Select TLD (.com, .fr ...) from url or domain
Submitted by
Etienne
-
8 years ago
1
US and Mexico Phone Numbers with Extensions
PCRE (PHP <7.3)
no description available
Submitted by
Katrina
-
8 years ago
1
html
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
Space replacement
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
1
Website validation
PCRE (PHP <7.3)
Simple website validation for your casual usage
Submitted by
McSwagLord
-
8 years ago
(Last modified 9 months ago)
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
bridal quality
PCRE (PHP <7.3)
no description available
Submitted by
mine
-
11 years ago
1
...
34
35
36
37
38
...
471
SCID
0
Regular Expression
PCRE (PHP <7.3)
/
(
(
ServiceCodeID
\s
*
=
\s
*
[^
\s
@a
-
z
]
[
0
-
9
]
{1,}
)
|
(
ServiceCodeID
\s
*
in
\s
*
\(
\s
*
[
0
-
9
\,
*
]
{1,}
\s
*
\)
)
)
|
(
(
ProgramID
\s
*
=
\s
*
[^
\s
@a
-
z
]
[
0
-
9
]
{1,}
)
|
(
ProgramID
\s
*
in
\s
*
\(
\s
*
[
0
-
9
\,
*
]
{1,}
\s
*
\)
)
)
/
gmi
Open regex in editor
Description
no description available
Submitted by
anonymous
-
4 years ago