Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
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 (C#)
Rust
Sponsors
Community Patterns
Search among 11,560 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
regex that allows digits, space and hyphen
PCRE2 (PHP >=7.3)
regex that allows digits, space and hyphen
Submitted by
Animesh
-
2 months ago
2023-08-10 08:47
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
匹配markdown代码块
PCRE2 (PHP >=7.3)
组1:编程语言 组2:代码
Submitted by
若小仟
-
2 months ago
2023-08-10 07:39
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
File path parser
PCRE2 (PHP >=7.3)
Parses a file path into 3 capture groups: 1: path (may be empty) 2: filename (required) 3: extension (may be empty)
Submitted by
Perigoso
-
2 months ago
2023-08-09 13:54
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Get type from calypso XML
PCRE2 (PHP >=7.3)
How to get type from calypso XML by key words
Submitted by
AlexMia
-
2 months ago
2023-08-08 13:11
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
IPv6 前缀格式
PCRE2 (PHP >=7.3)
IPv6 前缀格式
Submitted by
anonymous
-
2 months ago
2023-08-08 04:21
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
jerry_eth_match
PCRE2 (PHP >=7.3)
jerry_eth_match
Submitted by
rin
-
2 months ago
2023-08-07 08:52
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
mikrotik rsc to github
PCRE (PHP <7.3)
convert mikrotik rsc to one line as every rule
Submitted by
sanekmihailow
-
2 months ago
2023-08-06 08:45
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
test
PCRE2 (PHP >=7.3)
mail, pass, ...
Submitted by
anonymous
-
2 months ago
2023-08-05 17:53
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
one line html
PCRE2 (PHP >=7.3)
matches html
Submitted by
anonymous
-
2 months ago
2023-08-04 17:30
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Test email for 99% of possible issues
PCRE2 (PHP >=7.3)
This is written using several other developer's work with my tying it all together and adding a few small requirement of my own. allows Latin characters (“a” - “z” or “A” - “Z”) within the email address. permits digits (0 - 9) in the email address. enforces domain part restrictions. allows hyphens ...
Submitted by
anonymous
-
2 months ago
2023-08-03 15:29
(Last modified 2 months ago)
2023-08-03 15:31
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Email Validation General (miscrosoft email rule)
PCRE2 (PHP >=7.3)
^([a-z0-9]+(?:([-]+|[.])[\w-]+|[-]))@([a-z0-9]+(?:([.-]\w+)\.)[a-z]{2,13})$
Submitted by
Riki
-
2 months ago
2023-08-03 07:08
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Remove specific character in beginning & last
PCRE2 (PHP >=7.3)
Remove specific character in beginning & last
Submitted by
anonymous
-
2 months ago
2023-08-03 06:54
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
e_itcd_protocol_match
PCRE2 (PHP >=7.3)
Match an e-ITCD protocol inside a list
Submitted by
davidbragat
-
2 months ago
2023-08-01 12:52
(Last modified 2 months ago)
2023-08-01 12:57
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Validate comma-separated list of values (allowed: words; digits; special characters; single non-trailing non-leading spaces;)
PCRE2 (PHP >=7.3)
Validate comma-separated list of values (allowed: words; digits; special characters; single non-trailing non-leading spaces;)
Submitted by
anonymous
-
2 months ago
2023-07-31 07:50
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Salesforce - Flow Naming Conventions
PCRE2 (PHP >=7.3)
Ensure that Salesforce Flow name meets the following standards: - -
Submitted by
anonymous
-
2 months ago
2023-07-28 17:37
(Last modified 2 months ago)
2023-07-28 18:34
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Splitting Inconsistent Addresses
PCRE2 (PHP >=7.3)
This pattern matches inconsistent addresses that have various street names and coordinates. This captures the Address 1 & 2, Type of Street, Coordinates (NE, NW, SE,SW) City, State, and Full zip
Submitted by
Nadira S Fant
-
2 months ago
2023-07-28 16:45
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
BDO client ID
PCRE2 (PHP >=7.3)
Validates client IDs
Submitted by
anonymous
-
2 months ago
2023-07-28 12:58
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regex many
PCRE2 (PHP >=7.3)
Search and change many regex matches
Submitted by
anonymous
-
2 months ago
2023-07-27 19:11
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
IDN Domains and Subdomains
PCRE2 (PHP >=7.3)
IDN Domains & Normal Domains This regex is able to identify any type of domain or subdomain whether it is IDN or normal, this includes domains in emojis, non-Latin characters, etc.
Submitted by
NCK
-
2 months ago
2023-07-26 14:47
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
JavaScript String Matcher
PCRE2 (PHP >=7.3)
Matches comments, strings, templates, and regexes from javascript code. also matches templates recursively in order to correctly get template data
Submitted by
ephf
-
2 months ago
2023-07-19 18:11
1
2
3
4
5
6
7
...
578
Innovative
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
(
\d
{5,}
\S
+
)
(?:
-REV
)
|
(
\d
{5,}
)
|
(
\d.
+
)
(?:
-REV
)
.
+
|
(
\b
[
A
-
Za
-
z0
-
9
]
+
-
[
A
-
Za
-
z0
-
9
]
+
-
[
A
-
Za
-
z0
-
9
]
+
\b
)
|
(
\d
{4,}
.\S
+
)
/
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
5 months ago
2023-05-03 15:08