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 18,020 community submitted regex patterns...
1
Regex to detect HAML attribute expression whilst ignoring following text.
ECMAScript (JavaScript)
Can handle complex bracket expressions.
Submitted by
github.com/onlinecop
-
10 years ago
1
test
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
1
1
PCRE (PHP <7.3)
23123
Submitted by
anonymous
-
10 years ago
1
test url
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
YOLO
PCRE (PHP <7.3)
Substitutes "you only live once" with "YOLO".
Submitted by
anonymous
-
10 years ago
1
Number invalidator
PCRE (PHP <7.3)
Including +/-12.3. etc. Excluding MH12, etc.
Submitted by
HMK
-
10 years ago
1
number validator
PCRE (PHP <7.3)
exclude data with space and "-"
Submitted by
HMK
-
10 years ago
1
Match Markup
PCRE (PHP <7.3)
no description available
Submitted by
A
-
10 years ago
1
auie
Python
auie
Submitted by
auie
-
10 years ago
1
foobar
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
Escape non-Ascii Character
PCRE (PHP <7.3)
Replace non-ascii characters with empty spaces.
Submitted by
Huchister
-
10 years ago
1
Demo
ECMAScript (JavaScript)
no description available
Submitted by
Tensibai
-
10 years ago
1
Matching url
Python
no description available
Submitted by
anonymous
-
10 years ago
1
Recursive search
PCRE (PHP <7.3)
Proof of concept to omit restriction with '' http://stackoverflow.com/questions/15584634/about-php-regexp-for-recursive-pattern?answertab=oldest#tab-top http://stackoverflow.com/questions/25408579/regex-to-match-blocks-inside-blocks
Submitted by
themroc
-
10 years ago
1
Recursive search
PCRE (PHP <7.3)
Proof of concept to omit restriction with '' http://stackoverflow.com/questions/15584634/about-php-regexp-for-recursive-pattern?answertab=oldest#tab-top http://stackoverflow.com/questions/25408579/regex-to-match-blocks-inside-blocks
Submitted by
themroc
-
10 years ago
1
test
PCRE (PHP <7.3)
no description available
Submitted by
Honza BÅ™eÄka
-
10 years ago
1
Test prioritized match
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
sushiroles
PCRE (PHP <7.3)
some sushi role
Submitted by
anonymous
-
10 years ago
1
Extracting Numbers
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
...
69
70
71
72
73
...
901
Community Library Entry
1
Regular Expression
PCRE (PHP <7.3)
/
(
3
[
47
]
[
0
-
9
]
{13}
|
3
(?:
0
[
0
-
5
]
|
[
68
]
[
0
-
9
]
)
[
0
-
9
]
{11}
|
4
[
0
-
9
]
{12}
(?:
[
0
-
9
]
{3}
)?
|
5
[
1
-
5
]
[
0
-
9
]
{14}
|
6
(?:
011
|
5
[
0
-
9
]
{2}
)
[
0
-
9
]
{12}
|
(?:
2131
|
1800
|
35
\d
{3}
)
\d
{11}
)
/
g
Open regex in editor
Description
Captures credit card looking sequence of digits Luhn validation remains required as a complement.
Submitted by
OP
-
10 years ago