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,260 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Find all PHP short echo tags
PCRE2 (PHP >=7.3)
Find all short echo tags and convert to Laravel Blade echo brackets {{ }}
Submitted by
matasbi
-
4 months ago
2023-08-11 14:05
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Multiline Address
PCRE2 (PHP >=7.3)
Match multiline address formats
Submitted by
anonymous
-
4 months ago
2023-08-11 04:05
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
IP matching
PCRE2 (PHP >=7.3)
using \g to match repeated pattern
Submitted by
binger
-
4 months ago
2023-08-11 01:09
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
template string match
PCRE2 (PHP >=7.3)
match like this: ${foo}
Submitted by
anonymous
-
4 months ago
2023-08-10 15:45
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
-
4 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
若小仟
-
4 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
-
4 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
-
4 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
-
4 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
-
4 months ago
2023-08-07 08:52
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
-
4 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
-
4 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
-
4 months ago
2023-08-03 15:29
(Last modified 4 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
-
4 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
-
4 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
-
4 months ago
2023-08-01 12:52
(Last modified 4 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
-
4 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
-
4 months ago
2023-07-28 17:37
(Last modified 4 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
-
4 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
-
4 months ago
2023-07-28 12:58
1
...
6
7
8
9
10
11
12
...
113
Find ip and link full
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
Golang
`
\s
(
[
a
-
zA
-
Z
]
+
://
)*
(
\b
(
[
a
-
zA
-
Z
]
[
\w
-
]
*
\.
){1,3}
[
a
-
zA
-
Z0
-
9
]
+
|
(
\b
(
(
2
[
0
-
4
]
\d
|
25
[
0
-
5
]
|
1
\d\d
|
0
\d\d
|
0
\d
|
\d\d
|
\d
)
\.
){3}
(
2
[
0
-
4
]
\d
|
25
[
0
-
5
]
|
1
\d\d
|
0
\d\d
|
0
\d
|
\d\d
|
\d
)
\b
)
)
(
:
\d
+
)*
(
[
\\\!\"\#\$\%\&\'\(\)\*\+\-\/\:\;\<\=\>\?\@\[\]\^
\`
\{\|\}\~\.
\w
]
)*
(
\,
.
+
\.
[
a
-
z
]
+
)*
`
g
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
6 years ago
2017-11-27 09:49