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 2,240 community submitted regex patterns...
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
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
Bwt Double Quotes
PCRE2 (PHP >=7.3)
Select string between double quotes.
Submitted by
anonymous
-
2 months ago
2023-07-16 10:15
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
7 Days to Die replace party girl
PCRE2 (PHP >=7.3)
A regular expression for replacing Arlene and party girl with the lab tech model in 7 Days to Die. This ought to be applied to the file D:\Program Files (x86)\Steam\steamapps\common\7 Days To Die\Data\Config\entitygroups.xml
Submitted by
anonymous
-
3 months ago
2023-07-14 17:11
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
Regex example
PCRE2 (PHP >=7.3)
For pldi
Submitted by
PlaceReporter99
-
3 months ago
2023-07-13 11:02
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
i18n extract
PCRE2 (PHP >=7.3)
extract strings between {…} or __(…)
Submitted by
ced404
-
3 months ago
2023-07-13 10:08
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
Match leading number of port and replace it with another
PCRE2 (PHP >=7.3)
the point is to help replace leading number with another number to prevent some services uses same port
Submitted by
anonymous
-
3 months ago
2023-07-13 09:06
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
HZS003 - PODs (find ref)
PCRE2 (PHP >=7.3)
den finder referencer der starter med afdelingsnummer efterfulgt af fil-ref
Submitted by
anonymous
-
3 months ago
2023-07-13 08:33
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
ejemplo 2
PCRE2 (PHP >=7.3)
este es el ejemplo de Expr numero 2
Submitted by
anonymous
-
3 months ago
2023-07-11 09:37
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Universal Phone Regex
PCRE2 (PHP >=7.3)
Just a simple regex to detect phone numbers Should work in just about any regex flavor.
Submitted by
anonymous
-
3 months ago
2023-07-11 02:52
1
2
3
4
5
6
7
...
112
Task6.2
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
(?:
\+
994
|
0
)
(?:
51
|
50
|
55
|
70
|
77
|
99
)
[^
\d
]
{0,2}
[
2
-
9
]
[
0
-
9
]
{2}
[^
\d
]
{0,2}
[
0
-
9
]
{2}
[^
\d
]
{0,2}
[
0
-
9
]
{2}
[^
\d
]
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
a year ago
2022-11-04 17:35