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,300 community submitted regex patterns...
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
SUBTOTAL
Python
SUBTOTAL 15.88
Submitted by
KRISHNA
-
2 years ago
2022-05-05 10:11
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Time in hh:mm:ss
PCRE (PHP <7.3)
19h32min16s
Submitted by
anonymous
-
2 years ago
2022-05-05 22:51
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
CPF|CNPJ
Python
Match Brazilian documents
Submitted by
Bacco
-
2 years ago
2022-05-06 21:28
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
恩更
Python
非法发
Submitted by
anonymous
-
2 years ago
2022-05-07 02:43
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
完形填空
Python
完形填空
Submitted by
anonymous
-
2 years ago
2022-05-07 13:21
(Last modified 2 years ago)
2022-05-09 12:12
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
dice thing
Python
Stuff for a dnd thing
Submitted by
Cata
-
2 years ago
2022-05-09 00:46
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
PO Number
Python
Detects specific prefixes followed by number series
Submitted by
anonymous
-
2 years ago
2022-05-09 09:35
(Last modified 2 years ago)
2022-05-09 09:39
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Credit Note
Python
Detects specific word in a sentence
Submitted by
anonymous
-
2 years ago
2022-05-09 09:31
(Last modified 2 years ago)
2022-05-09 09:38
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Postcode (UK)
Python
Detects UK postcodes (minimal edge cases)
Submitted by
anonymous
-
2 years ago
2022-05-09 09:37
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Extract VK.com community ID
Python
Extract the numerical ID of a VK Commmunity fromit's wall url.
Submitted by
anonymous
-
2 years ago
2022-05-11 12:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
使用した正規表現
PCRE (PHP <7.3)
用例の検索のために使用した正規表現です。
Submitted by
anonymous
-
2 years ago
2022-05-11 14:16
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
regex expression to DateTime checking in YYYY-MM-DDTHH:MM:SS[+/-]HH:SS
Python
/(^((\d{4}-(((0[13578]|1)-(0[1-9]|[1-2]\d|3[01]))))|((\d{4}-(((0[469]|1)-(0[1-9]|[1-2]\d|3)))))|((\d{4}-(0[2]-(0[1-9]|[1-2]\d)))))T(([01]\d|2[0-3]):([0-5]\d):([0-5]\d))?(+-\d:[0-5]\d)$)/gm
Submitted by
anonymous
-
2 years ago
2022-05-17 04:45
(Last modified 5 months ago)
2023-07-19 13:51
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Url handling
Python
Simple regex to split url
Submitted by
Hangfish
-
2 years ago
2022-05-20 14:25
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
find between
PCRE (PHP <7.3)
find between
Submitted by
anonymous
-
2 years ago
2022-05-20 15:45
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
完形填空答案提取
Python
提取并分组: 题号 ABCD四个答案
Submitted by
anonymous
-
2 years ago
2022-05-22 04:33
(Last modified 2 years ago)
2022-05-22 04:43
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Matching %d-%b date format
Python
Matching %d-%b date format with or without leading 0 in the day
Submitted by
Justin Copeland
-
2 years ago
2022-05-25 22:36
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Extraire les informations du chemin d'une photo
PCRE (PHP <7.3)
Extraire les informations du chemin d'une photo.
Submitted by
Nicolas
-
2 years ago
2022-05-27 17:04
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
lua_pattern
Python
lua file name
Submitted by
anonymous
-
2 years ago
2022-06-01 11:59
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Add gcache.size to Galera Cluster node config
Python
Regexp to add gcache.size to Galera cluster config, using Ansible's replace module
Submitted by
Aurelio Llorente
-
2 years ago
2022-06-02 15:45
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
match street address
PCRE (PHP <7.3)
match street address with no more than 6 numbers and no special characters
Submitted by
anonymous
-
2 years ago
2022-06-03 19:22
1
...
545
546
547
548
549
550
551
...
565
Mathematical Expressions
-2
1 upvotes, 3 downvotes (score 4.6%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
#
https://regex101.com/r/fP1oQ6/2
(?(DEFINE)
#
(?<W>
\s
*
)
(?<V>
\d
+
(?:
\.
\d
+
)?
(?&W)
)
(?<S>
[
-+
]
?
)
(?<O>
(?&W)
[
-+*
\/
]
(?&W)
)
(?<E>
(?&S)
(?:
(?&V)
|
\(
(?&W)(?&E)(?&W)
\)
)
(?:
(?&O)(?&E)
)?
)
#
)
#
(
(?&E)
)
/
xgJ
Open regex in editor
Description
Loading markdown...
Submitted by
Jeremy Friesen
-
8 years ago
2015-07-21 21:28