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,040 community submitted regex patterns...
1
Very basic mail check regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
Locale ICU validator
PCRE (PHP <7.3)
Regexp to match against a icu locale string
Submitted by
Sylvain Combes
-
7 years ago
1
flush done
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
CMSC320 NASA Dirty Table Regex
PCRE (PHP <7.3)
https://cdaw.gsfc.nasa.gov/CME_list/radio/waves_type2.html
Submitted by
anonymous
-
7 years ago
1
Mail TIGF
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
7 years ago
1
Url include with negative lookbehind
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
Match on Valid IP
PCRE (PHP <7.3)
Match on VALID IP address anywhere in string.
Submitted by
KyleV
-
7 years ago
1
Match on phone number in any standard format
PCRE (PHP <7.3)
Match on a phone number in ANY standard phone number format.
Submitted by
KyleV
-
7 years ago
1
SIREN
PCRE (PHP <7.3)
SIREN for french business register number
Submitted by
Maxime
-
7 years ago
1
SIRET
PCRE (PHP <7.3)
Business register number for France SIRET
Submitted by
Maxime
-
7 years ago
1
RNA
PCRE (PHP <7.3)
French association register number RNA
Submitted by
Maxime
-
7 years ago
1
Word filter
ECMAScript (JavaScript)
This regex matches up with the word rape, even if accent marks are used.
Submitted by
Ethan Lawrence
-
7 years ago
1
Match HTML img elements with URL source
PCRE (PHP <7.3)
Matches all img tags that have a URL for the src attribute. Useful for updating all those links in your email templates, or where ever your using the \ tag
Submitted by
Doom87er
-
7 years ago
1
Meetup Event URL
ECMAScript (JavaScript)
Allowed URL patterns for Meetup.com events
Submitted by
anonymous
-
7 years ago
1
Replace for CSS
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
Check if string matches a valid CSS color (hex, rgb, rgba, hsl, hsla)
ECMAScript (JavaScript)
no description available
Submitted by
Ioannis Potouridis
-
7 years ago
1
Regex to group output of $(ip addr) interface
Python
For this task, I did not need inet6 (IPv6 stuff), so I left it out. The regex in its current state does not allow for that to be included without manually adding the entire second part
Submitted by
anonymous
-
7 years ago
1
Get SQL FROM
PCRE (PHP <7.3)
SELECT * FROM wp_users WHERE user_login = 'username'
Submitted by
Lars Jansen
-
7 years ago
1
IPV4 regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
7 years ago
1
toby regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
1
...
232
233
234
235
236
...
902
Community Library Entry
2
Regular Expression
PCRE (PHP <7.3)
/
^
(?<ROYAL_FLUSH>
(
A
)
(
.
)
K
\3
Q
\3
J
\3
T
\3
)
|
(?<STRAIGHT_FLUSH>
(
K
)
(
.
)
Q
\6
J
\6
T
\6
9
\6
|
(
Q
)
(
.
)
J
\8
T
\8
9
\8
8
\8
|
(
J
)
(
.
)
T
\10
9
\10
8
\10
7
\10
|
(
T
)
(
.
)
9
\12
8
\12
7
\12
6
\12
|
(
9
)
(
.
)
8
\14
7
\14
6
\14
5
\14
|
(
8
)
(
.
)
7
\16
6
\16
5
\16
4
\16
|
(
7
)
(
.
)
6
\18
5
\18
4
\18
3
\18
|
(
6
)
(
.
)
5
\20
4
\20
3
\20
2
\20
|
(
A
)
(
.
)
5
\22
4
\22
3
\22
2
\22
)
|
(?<FOUR_OF_A_KIND>
.
*
(
.
)
.
\24
.
\24
.
\24
..
*
)
|
(?<FULL_HOUSE>
(
.
)
.
\26
.
(
.
)
.
\27
.
\27
.
|
(
.
)
.
\28
.
\28
.
(
.
)
.
\29
.
)
|
(?<FLUSH>
(
.
)
(
.
)
.
\32
.
\32
.
\32
.
\32
)
|
(?<STRAIGHT>
(
A
)
.
K
.
Q
.
J
.
T
.
|
(
K
)
.
Q
.
J
.
T
.
9
.
|
(
Q
)
.
J
.
T
.
9
.
8
.
|
(
J
)
.
T
.
9
.
8
.
7
.
|
(
T
)
.
9
.
8
.
7
.
6
.
|
(
9
)
.
8
.
7
.
6
.
5
.
|
(
8
)
.
7
.
6
.
5
.
4
.
|
(
7
)
.
6
.
5
.
4
.
3
.
|
(
6
)
.
5
.
4
.
3
.
2
.
|
A
.
(
5
)
.
4
.
3
.
2
.
)
|
(?<THREE_OF_A_KIND>
.
*
(
.
)
.
\45
.
\45
..
*
)
|
(?<TWO_PAIR>
.
*
(
.
)
.
\47
.
.
*
(
.
)
.
\48
..
*
)
|
(?<PAIR>
.
*
(
.
)
.
\50
..
*
)
|
(?<HIGH_CARD>
(
.
)
.
*
)
$
/
gm
Open regex in editor
Description
Detect the poker hand from a sorted hand like this:
<Figure><Number> with the figures and numbers sorted in descending order
Submitted by
ZeNairolf
-
4 years ago