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
ПОДРОСТ
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
SessionM Target Parsing (WIP)
PCRE (PHP <7.3)
Work in progress Regex transform for parsing SessionM targeting config from YAML
Submitted by
anonymous
-
6 years ago
1
Youtube Regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
1
VALIDATE CELLPHONE - BRAZIL
PCRE (PHP <7.3)
MASK TO VALIDATION, WHEN YOU NEED THE AREA CODE OPEN. TO A CELLPHONE WITH 9 OR 8 DIGITS + AREA CODE OF 2 DIGITS 11 987654321 -> IT WILL GET 98765
Submitted by
anonymous
-
6 years ago
1
REMOVE LAST DIGITS
PCRE (PHP <7.3)
Removes the last 4 digits from a expression
Submitted by
anonymous
-
6 years ago
1
GET THE USERNAME OF THE EMAIL
PCRE (PHP <7.3)
Recovers the part before @ For example: teste@testregex.com The regex will catch teste
Submitted by
anonymous
-
6 years ago
1
matching-search-queries-at-end
Python
This regex will match search queries formatted in 3 specific patterns.
Submitted by
anonymous
-
6 years ago
1
IP regex
PCRE (PHP <7.3)
Match IP address that works fine on an acl rule for a Squid config file : acl aclname src ip-address/mask ... # clients IP address [fast] acl aclname src addr1-addr2/mask ... # range of addresses [fast] acl aclname dst [-n] ip-address/mask ... # URL host's IP address [slow] acl aclname localip ip-ad...
Submitted by
anonymous
-
6 years ago
1
Asterisk Channel
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
1
UNIMARC embedded to standard subfield
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
1
Replace quotas in ODI code excluding Beabshell substitutions
PCRE (PHP <7.3)
This example helps the ODI developer to generate code. If some parts of the dynamic code arrive in KM via Option, it is difficult to process it in Beanshell. And more so it is difficult if the code part contains Beanshell-substitution. This example shows how to replace e.g. quotes in the code and d...
Submitted by
Naeel Maqsudov
-
6 years ago
1
Expression
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
1
Verifica correttezza partita IVA europea
PCRE (PHP <7.3)
dal formato italiano 2 lettere + 11 cifre: IT01234567890
Submitted by
anonymous
-
6 years ago
1
Starbucks
ECMAScript (JavaScript)
no * before the name
Submitted by
anonymous
-
6 years ago
1
exp
PCRE (PHP <7.3)
exp
Submitted by
anonymous
-
6 years ago
1
Street number
PCRE (PHP <7.3)
Extract the street number and the remainder part from the address
Submitted by
anonymous
-
4 years ago
1
Сельскохозяйственные угодья
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
1
URL Validator
PCRE (PHP <7.3)
Finds valid URLs (they have to start with "https://")
Submitted by
chris mccoy
-
6 years ago
1
URL matching with HTTP(s) and IPv4 with Port
Python
no description available
Submitted by
anonymous
-
6 years ago
1
Test e-mail format string
Python
Regexp based on https://en.wikipedia.org/wiki/Email_address criteria.
Submitted by
anonymous
-
5 years ago
1
...
235
236
237
238
239
...
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