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,480 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Improvement on Python Print substitution argument matching
Python
Get the python substitution strings from inside of print statements. Replace the whole substitution string with {{ ArgumentName }} for use in a Jinja2 rendering. Supports fstrings...
Submitted by
Giles Knap
-
a day ago
2023-09-25 09:20
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Python Print String arg extraction
Python
Extract substitution parameters from python print strings works with fstrings old style format strings old style %(variable) strings
Submitted by
Giles Knap
-
2 days ago
2023-09-24 18:24
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
GrEedy
Python
greedy or no greedy_**
Submitted by
daen3r1s
-
5 days ago
2023-09-21 14:34
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
groupping math every 2 comma separator
PCRE (PHP <7.3)
i have paste \n after every 2-th comma using sed sed 's/\(\(*,\)\{2\}\)/\1\n/g'
Submitted by
sanekmihailow
-
7 days ago
2023-09-19 18:20
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Remove specific parameter from URL
PCRE (PHP <7.3)
This pattern finds a parameter (sst) key + value in a GET request URL. When replaced with an empty string, effectively removes the parameter. Works with both full URLs and isolated query strings. Works in PCRE and PCRE2. Full use case: if (isset($_GET["sst"])) { // validate...
Submitted by
Martin Holt
-
14 days ago
2023-09-13 00:35
(Last modified 14 days ago)
2023-09-13 00:41
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Opportunity Close
PCRE (PHP <7.3)
Prepare batch job for opportunity close
Submitted by
wistlo
-
18 days ago
2023-09-08 17:15
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
HGVS - ClinVar Submission
Python
HGVS Nomenclature Check for ClinVar Submissions
Submitted by
anonymous
-
22 days ago
2023-09-04 12:57
(Last modified 22 days ago)
2023-09-04 12:58
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Adds custom prefix to tailwind classes
PCRE (PHP <7.3)
Or any other particular case where given any line that starts with the pattern "@apply" (or any other line heading) and it substitutes any word (list of characters without spaces), with or without puntuation in them, and it adds a custom prefix to all the words in that line but the line heading.
Submitted by
@drakopablo.dev
-
22 days ago
2023-09-04 10:51
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Invalid Windows Filename Chars
PCRE (PHP <7.3)
https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file Integer value zero, sometimes referred to as the ASCII NUL character. Characters whose integer representations are in the range from 1 through 31, except for alternate data streams where these characters are allowed. For more info...
Submitted by
anonymous
-
22 days ago
2023-09-04 05:47
(Last modified 22 days ago)
2023-09-04 05:54
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
0x28C6A6DdF8fF8A47A90A69bfE75cd89904a14d71
Golang
0x28C6A6DdF8fF8A47A90A69bfE75cd89904a14d71
Submitted by
anonymous
-
25 days ago
2023-09-02 02:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match emoji in emoji-zwj-sequences.txt
Python
Match emoji in emoji-zwj-sequences.txt
Submitted by
anonymous
-
a month ago
2023-08-18 14:19
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
emoji-test.txt
Python
emoji-test.txt
Submitted by
anonymous
-
a month ago
2023-08-18 12:53
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Mikrotik firewall logs
Golang
Matching for mikrotik ROS 7 Used in promtail and grafana
Submitted by
anonymous
-
a month ago
2023-08-11 19:09
(Last modified a month ago)
2023-08-11 21:09
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
mikrotik rsc to github
PCRE (PHP <7.3)
convert mikrotik rsc to one line as every rule
Submitted by
sanekmihailow
-
2 months ago
2023-08-06 08:45
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Python regular expression to detect any type of group link and private channel in Telegram
Python
You can use this regular expression to identify any type of Telegram link. It doesn't matter whether it is t.me or telegram.me. Links including "joinchat" are also accepted.
Submitted by
Telegram : T.me/TinyPY
-
2 months ago
2023-07-23 15:57
(Last modified 2 months ago)
2023-07-24 15:49
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
matrix.to URL regex
Python
Regex to detect and extract detail from matrix.to
Submitted by
anonymous
-
2 months ago
2023-07-18 17:02
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
pesquisa_cautelar
PCRE (PHP <7.3)
Array ( [0] => Página 1 de 5 MEGA [1] => Código da Consulta: 15240795 [2] => MEGA15240795VIS\bKdKd>Z/Z\bOPRETOAGJ3548,SP,MEGA15240795VIS\bKdKd>Z/Z\bOPRETOAGJ3548,SP,MEGA15240795VIS\bKdKd>Z/Z\bOPRETOAGJ3548,SP,MEGA15240795VIS\bKdKd>Z/Z\bOPRETOAGJ3548,SP,MEGA15240795VIS\bKdKd...
Submitted by
emerson
-
2 months ago
2023-07-14 19:37
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Additional
PCRE (PHP <7.3)
Splitting Additionalname in Basename and Specification
Submitted by
JK
-
2 months ago
2023-07-13 07:57
(Last modified 2 months ago)
2023-07-19 09:43
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Tracking Number Recognition and Parsing
PCRE (PHP <7.3)
T
Submitted by
anonymous
-
2 months ago
2023-07-12 16:54
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Library catalogue (VTECH V-Lib)
Python
Matches entries in a library catalogue.
Submitted by
anonymous
-
3 months ago
2023-07-11 02:22
1
2
3
4
...
574
aa
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
[
0
-
9
]
{1,3}
[
\s
]
*
?
[
_|.,:;
]
[
\s
]
*
?
[
0
-
9
]
{1,3}
[
\s
]
*
?
[
_|.,:;
]
[
\s
]
*
?
[
0
-
9
]
{1,3}
[
\s
]
*
?
[
_|.,:;
]
[
\s
]
*
?
[
0
-
9
]
{1,3}
[
\s
]
*
?
:
[
\s
]
*
?
[
0
-
9
]
{3,6}
/
Open regex in editor
Description
Loading markdown...
Submitted by
aaa
-
8 years ago
2015-05-03 19:19