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,580 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Search for strings being used as booleans
PCRE2 (PHP >=7.3)
We had an issue wherein people were attempting to use strings as booleans in JavaScript. E.G.: return ( {thisIsAString && ... )...
Submitted by
Nedron
-
2 years ago
2022-03-18 21:26
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Russian phone
PCRE2 (PHP >=7.3)
Russian phone regex
Submitted by
Gor Sargsyan
-
2 years ago
2022-03-20 23:08
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
regex_honoraires_prix
PCRE2 (PHP >=7.3)
guif
Submitted by
guif
-
2 years ago
2022-03-22 17:22
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
regex_honoraires_vf_2
PCRE2 (PHP >=7.3)
guif
Submitted by
guif
-
2 years ago
2022-03-23 09:30
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
regex_honoraires_vf_3
PCRE2 (PHP >=7.3)
guif
Submitted by
guif
-
2 years ago
2022-03-23 09:37
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Email Regex
PCRE2 (PHP >=7.3)
email regex
Submitted by
anonymous
-
2 years ago
2022-03-24 00:22
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Split number and string
PCRE2 (PHP >=7.3)
Split number and string exp. data as below 17091327 Ren Xian Xtrcb County Bank Corporation Limited 50156 0862315402 19D 17091342 BaoDing QingYuan District Xtrcb Rural Bank Corporation Limit40156 0862315401 19D
Submitted by
anonymous
-
2 years ago
2022-03-25 06:22
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regex to match the image mime types
PCRE2 (PHP >=7.3)
Matches the image mime types. E.g image/png, image/jpeg, etc.
Submitted by
anonymous
-
2 years ago
2022-03-25 17:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
reverse commenting/code order
PCRE2 (PHP >=7.3)
reverses order when code is followed by comments (comments prepended with ## )
Submitted by
anonymous
-
2 years ago
2022-03-25 20:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
hi
PCRE2 (PHP >=7.3)
hi
Submitted by
anonymous
-
2 years ago
2022-03-26 08:12
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
09|10|11
PCRE2 (PHP >=7.3)
select 09|10
Submitted by
ekam230
-
2 years ago
2022-03-26 12:10
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
C style comments
PCRE2 (PHP >=7.3)
Regular expression to match all C style comments.
Submitted by
Seymoar Regex
-
2 years ago
2022-03-27 17:18
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
how to match for a word not to be in the input
PCRE2 (PHP >=7.3)
Not Funny vs Funny - need to match for both cases
Submitted by
anonymous
-
2 years ago
2022-03-27 19:39
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
匹配md图片
PCRE2 (PHP >=7.3)
匹配md图片
Submitted by
anonymous
-
2 years ago
2022-03-28 11:16
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
DOI extraction
PCRE2 (PHP >=7.3)
used to extract doi
Submitted by
Sharjeel
-
2 years ago
2022-03-28 18:37
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Nr2000 RegExp
PCRE2 (PHP >=7.3)
Regular exporession for Nr2000 validation
Submitted by
anonymous
-
2 years ago
2022-03-29 05:57
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
subdomain
PCRE2 (PHP >=7.3)
select subdomain
Submitted by
anonymous
-
2 years ago
2022-03-30 02:53
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
select
PCRE2 (PHP >=7.3)
select的操作
Submitted by
lyf
-
2 years ago
2022-03-30 13:53
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Match non self closing tags HTML/XML tags
Golang
no description available
Submitted by
Richard Peng
-
7 years ago
2017-02-20 18:50
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Sustitución de espacios en blanco al final y al principio de una cadena.
Golang
no description available
Submitted by
anonymous
-
6 years ago
2017-04-28 18:07
1
...
68
69
70
71
72
73
74
...
129
Parse m3u8 IPTV playlist
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
PCRE2 (PHP >=7.3)
/
^
#EXTINF:
.
+
,
\s
*
(?<channel>
.
*
HD
.
*
)
$
(?<bullshit>
\r
?
\n.
*
)?
\r
?
\n
(?<url>
^
https
?
:
\/\/
.
*
$
)
/
gmi
Open regex in editor
Description
Loading markdown...
Submitted by
https://axenov.dev
-
a year ago
2022-06-07 04:08