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,500 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
domain_check
Python
check if a gives string is a domain 检查一个给定的字符串是不是域名
Submitted by
anonymous
-
3 years ago
2020-10-26 02:50
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
superscript notes
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
2020-10-26 02:31
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
select per lines
Python
lawbyte
Submitted by
anonymous
-
3 years ago
2020-10-26 00:16
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
select 2 lines
Python
no description available
Submitted by
anonymous
-
3 years ago
2020-10-26 00:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
select 200 lines
Python
no description available
Submitted by
anonymous
-
3 years ago
2020-10-25 23:48
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
validate saudi mobile numbers
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
2020-10-25 22:38
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
russian number
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
2020-10-25 20:24
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
PSR-16 Cache Key
PCRE (PHP <7.3)
https://www.php-fig.org/psr/psr-16/ Key - A string of at least one character that uniquely identifies a cached item. Implementing libraries MUST support keys consisting of the characters A-Z, a-z, 0-9, _, and . in any order in UTF-8 encoding and a length of up to 64 characters. Implementing librarie...
Submitted by
anonymous
-
3 years ago
2020-10-25 15:03
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match shell (sh / bash) shebangs
Python
This matches shell shebangs (bash / sh). It could be used e.g. to find shell files (via grep -m1 -EIrl '').
Submitted by
anonymous
-
3 years ago
2020-10-25 14:02
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
find host + key from map
Python
no description available
Submitted by
anonymous
-
3 years ago
2020-10-24 23:48
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
CODE field (numbers, capitals and dash (-))
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
2020-10-24 19:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
匹配<>中的字符
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
2020-10-24 09:07
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
url match with full match
Python
dxdx
Submitted by
anonymous
-
3 years ago
2020-10-24 05:44
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Eastlink Account retrieve with locationId
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
2020-10-23 14:56
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Eastlink Account retrieve with locationId
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
2020-10-23 14:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Eastlink Modem Get Equipment location
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
2020-10-23 14:01
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Enrno Match
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
2020-10-23 10:39
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Sigma : MSIExec Web install
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
2020-10-22 22:53
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Buildings
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
2020-10-22 20:06
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Actor command
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
3 years ago
2020-10-22 19:06
1
...
74
75
76
77
78
79
80
...
575
WKT LineString
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
^
(?(DEFINE)
(?'longitude'
[
-+
]
?
(?|
180
(?>
\.
0
+
)?
|
(?>
1
[
0
-
7
]
\d
|
[
1
-
9
]
?
\d
)
(?>
\.
\d
+
)?
)
)
(?'latitude'
[
-+
]
?
(?|
90
(?>
\.
0
+
)?
|
[
1
-
8
]
?
\d
(?>
\.
\d
+
)?
)
)
)
LINESTRING
\s
*
\(
(?>
(?:
(?
(?<=
\(
)
(?>
\s
*
)
|
(?>
\s
*
,
\s
*
)
)
(?P>longitude)
(?>
\s
*
)
(?P>latitude)
\s
*
){2,}
)
\)
$
/
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
3 years ago
2020-10-20 13:19