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...
3
MySQL Full-Text BOOLEAN mode
PCRE (PHP <7.3)
Checks if an input string is compatible with the BOOLEAN mode of MySQL full text search system
Submitted by
greezybacon
-
9 years ago
3
Get bad iframe (with white-list)
PCRE (PHP <7.3)
In (?!www.youtube.com\/|youtube.com\/|player.vimeo.com\/) u can add good sites for iframes: www.youtube.com/ player.vimeo.com/
Submitted by
Resager
-
9 years ago
1
filter range
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
2
Email Domain Regex
PCRE (PHP <7.3)
A pattern to match the email domain suffix
Submitted by
doug
-
9 years ago
-2
search all special characters
ECMAScript (JavaScript)
no description available
Submitted by
rlynjb
-
9 years ago
3
coffeescript operator
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2
find numbers with 2 commas
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Isolates Formatted money String inside HTML tags
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2
IP with Subnet
PCRE (PHP <7.3)
IP address with Subnet
Submitted by
Matt Masse
-
9 years ago
1
apache log parser
Python
no description available
Submitted by
Claudio Borges
-
9 years ago
2
Date between 1950 and 2050
ECMAScript (JavaScript)
Date in format MM-dd-yyyy
Submitted by
Daniel Quijada
-
9 years ago
1
Empty string test
PCRE (PHP <7.3)
Regular for testing empty strings for validation purpose
Submitted by
anonymous
-
9 years ago
1
Camel case string splitter
PCRE (PHP <7.3)
Splits CamelCase single string into separate strings. Can be used for transforming CamelCase to snake_case. Also works with numbers and capital letter shortcuts (e.g SomeWTFVariable1).
Submitted by
Nicolas
-
9 years ago
1
json comment - first attempt
Python
no description available
Submitted by
Mark
-
9 years ago
3
Extract Java Exception Message Field
PCRE (PHP <7.3)
Exception Message: java.lang.NullPointerException: Sample Java Logback Exception at Sample.errorLevel3(Sample.java:35) at Sample.errorLevel2(Sample.java:31) at Sample.errorLevel1(Sample.java:27)...
Submitted by
Amit
-
9 years ago
2
SED
Python
no description available
Submitted by
anonymous
-
9 years ago
1
java
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
Address Match
Python
no description available
Submitted by
Awk
-
9 years ago
2
notepad++
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2
replace any character with more than two occurrence
ECMAScript (JavaScript)
no description available
Submitted by
papky
-
9 years ago
1
...
31
32
33
34
35
...
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