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,280 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
-
7 days 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
-
8 days ago
2023-09-24 18:24
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Extract text strings from repeating text fields followed by a suffix
Java 8
This regex expression is useful for extracting only the text string from a value in a column that may contain values from individual rows with repeat strings tagged with a suffix. For example - Row 1: "Sales (#1)", Row 2: "Sales Match (#2)". From the shared examples, this regex will extract the text...
Submitted by
nilotpalc
-
10 days ago
2023-09-22 11:56
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
CSV
Java 8
Crude CSV regex to split only by characters surrounded by non-whitespace characters. Ignore that it dosen't highlight all of the other commas in the editor. If you select the g regex flag it will properly show here, but not work in Java. Credit to @merosity (Merosity#0135) on Discord!
Submitted by
Merosity, regice202
-
23 days ago
2023-09-09 10:06
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
-
a month ago
2023-09-04 12:57
(Last modified a month ago)
2023-09-04 12:58
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match many cases of 8601
Java 8
This is still a working in progress Need to do Unit Tests and search for more use cases Match partial cases of 8601 such as: missing offset missing time...
Submitted by
jpmand
-
a month ago
2023-08-31 11:08
(Last modified a month ago)
2023-08-31 14:32
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Extract any link or endpoint
Java 8
Extract any link or endpoint from 1- HTML page source 2- HTTP responses 3- JS files Feel free to contact me on Telegram https://t.me/c4ir0 if you:...
Submitted by
Cairo
-
a month ago
2023-08-25 22:32
(Last modified a month ago)
2023-08-27 08:35
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
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
html <Title>
Java 8
htnle
Submitted by
erichologist
-
2 months ago
2023-08-09 16:02
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
-2
0 upvotes, 2 downvotes (score 0%) (You must be signed in to vote)
Ascending and Descending order
Java 8
This regex is to match Ascending or descending order of 8 digit number
Submitted by
anonymous
-
3 months ago
2023-07-17 15:51
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
Capturing groups with suffix
Java 8
Capturing the content of column names which are duplicate in nature to extract the actual name and suffix ("right" / "left")
Submitted by
anonymous
-
3 months ago
2023-07-17 08:05
-1
0 upvotes, 1 downvotes (score 0%) (You must be signed in to vote)
Dart relative import
Java 8
find dart relative import path
Submitted by
sagarpanchal
-
3 months ago
2023-07-11 13:37
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
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
r/ProgrammerHumor comment regex
Python
A regex that matches comments that adhere to the rules of r/ProgrammerHumor
Submitted by
anonymous
-
3 months ago
2023-07-09 17:24
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Fate stay/night [HuneX/PSV]
Python
Fate stay/night PS Vita version parsing
Submitted by
anonymous
-
3 months ago
2023-07-08 02:52
(Last modified 3 months ago)
2023-07-08 05:58
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Fate Stay/Night (PC/JP) [Py]
Python
Attempting to parse Fate/Stay Night scripts nicely
Submitted by
anonymous
-
3 months ago
2023-07-08 02:50
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
选择题题目与选项匹配
Python
对有ABCD四个选项的选择题题目进行匹配
Submitted by
Wang Miao
-
3 months ago
2023-07-07 00:59
1
2
3
4
...
114
PLDI regex 2
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
Python
r"
[^
a
]
.
*
?
\)
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
PlaceReporter99
-
4 months ago
2023-05-21 14:42