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,280 community submitted regex patterns...
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
-
a year 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
-
a year 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
-
a year ago
2022-05-17 04:45
(Last modified 2 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
-
a year 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
-
a year 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
-
a year ago
2022-05-22 04:33
(Last modified a year 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
-
a year 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
-
a year 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
-
a year 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
-
a year 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
-
a year ago
2022-06-03 19:22
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Any mobile number extraction
Python
extracting mobile number along with country code
Submitted by
anonymous
-
a year ago
2022-06-03 21:05
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Email id extraction
Python
extracting email id from given string
Submitted by
anonymous
-
a year ago
2022-06-03 21:14
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
css class
PCRE (PHP <7.3)
css class
Submitted by
anonymous
-
a year ago
2022-06-07 06:02
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Parsing text between '[' and ']' unlimited number of times
Python
Using capturing group to match any text between [ and ] Test string '([Total Revenue] + [COGS] + [Distribution Costs] + [Sales Force Costs] + [A&P Costs] + [NDA Affairs Costs] + [Other Operating Costs]) * - [NDA share]'
Submitted by
anonymous
-
a year ago
2022-06-07 11:18
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
SAFE Parsing
Python
Parsing data in SAFE text file
Submitted by
anonymous
-
a year ago
2022-06-08 10:16
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
提取js中的内容
Python
获取变量值等
Submitted by
anonymous
-
a year ago
2022-06-08 16:52
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Procurar por IPv4
Python
Match em um IPv4 válido
Submitted by
anonymous
-
a year ago
2022-06-09 04:19
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
TCN Match
Python
Extract info about STP TCNs
Submitted by
anonymous
-
a year ago
2022-06-10 15:38
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
MAC Address
Python
Simple MAC address match/parsing expression
Submitted by
cwichel
-
a year ago
2022-06-13 21:45
1
...
545
546
547
548
549
550
551
...
564
CSV remove trailing spaces
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Regular Expression
Python
r"
\s
*
(
"{0,1}
)
(
;
|
\n
){1}
"
g
Open regex in editor
Description
Loading markdown...
Submitted by
destegabry
-
8 years ago
2016-01-27 09:48