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,360 community submitted regex patterns...
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
House and Senate Bills
Golang
Match a House or Senate bill in text.
Submitted by
Jason Putorti
-
5 days ago
2023-12-05 16:20
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Get text after parenthesis.
Python
This regular expression helps to get the strings of a line that comes after a parenthesis and a blank space. Could be useful with lines of text with or similar format of the APA citation style: Author (year) title
Submitted by
anonymous
-
13 days ago
2023-11-27 11:05
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
IPv4+CIDR(optional)
Python
Strict validator for IPv4 with optional CIDR Disallows 00 in any octet
Submitted by
ophers
-
18 days ago
2023-11-22 15:10
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Email Address Validation
Python
RegEx pattern to match email addresses. Visit the detailed tutorial to learn more.
Submitted by
Minh Vu
-
22 days ago
2023-11-18 09:04
(Last modified 22 days ago)
2023-11-18 09:05
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
NANP Modern Plan US Telephone / Phone number
Python
Match 10-digit phone number that mostly complies with NANP Modern Plan. https://en.wikipedia.org/wiki/North_American_Numbering_Plan Simple explanation: ...
Submitted by
makinhey
-
23 days ago
2023-11-17 01:14
(Last modified 22 days ago)
2023-11-17 20:31
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
задание_03
Python
задание_03
Submitted by
anonymous
-
a month ago
2023-11-12 02:13
(Last modified a month ago)
2023-11-12 02:23
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
instagram url
Python
gets the url instagram
Submitted by
samuel06santos
-
a month ago
2023-11-05 16:11
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Remove ANSI Escape Code
Python
Remove ANSI Escape Code
Submitted by
diaogong
-
a month ago
2023-11-05 12:19
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Initializing identifiers
.NET (C#)
Initializing identifiers
Submitted by
anonymous
-
a month ago
2023-11-04 12:02
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Simple URL validation
.NET (C#)
Validates protocol, sub-domain, domain, and top-level domain. No port number and query string parameters validation is made.
Submitted by
anonymous
-
a month ago
2023-10-27 11:27
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Kafka loki parser
Golang
Kafka loki parser
Submitted by
anonymous
-
2 months ago
2023-10-24 21:34
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Extract tag name and its content
Python
Lrc file
Submitted by
Cricar
-
2 months ago
2023-10-12 04:29
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Match each tag
Python
Match each tag in a lrc file
Submitted by
Cricar
-
2 months ago
2023-10-12 04:26
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Group tags and lyrics
Python
Group tags and lyrics in one lrc file, multiple lines
Submitted by
Cricar
-
2 months ago
2023-10-12 04:25
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
LNAV Format for Salt Log File
Python
Beginnings of defining a log format for Salt to use within LNAV. https://docs.lnav.org/en/latest/formats.html
Submitted by
anonymous
-
2 months ago
2023-10-10 22:49
(Last modified 2 months ago)
2023-10-11 01:09
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Placeholder resolving
.NET (C#)
.Net regular expression for resolving placeholders in the format of ${rewriter(multilevel:key)?fallback} (+ variations)
Submitted by
anonymous
-
2 months ago
2023-10-07 19:39
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
-
2 months 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
-
3 months ago
2023-09-24 18:24
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
-
3 months ago
2023-09-04 12:57
(Last modified 3 months ago)
2023-09-04 12:58
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
0x28C6A6DdF8fF8A47A90A69bfE75cd89904a14d71
Golang
0x28C6A6DdF8fF8A47A90A69bfE75cd89904a14d71
Submitted by
anonymous
-
3 months ago
2023-09-02 02:02
1
2
3
4
...
118
List of lists of numbers (no leading zeros)
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
Python
r"
^
\[
\s
*
(
\s
*
(
\s
*
\[
\s
*
(
[
1
-
9
]
[
0
-
9
]
*
\s
*
,
\s
*
)*
[
1
-
9
]
[
0
-
9
]
*
\s
*
\]
\s
*
,
\s
*
)*
\[
\s
*
(
[
1
-
9
]
[
0
-
9
]
*
\s
*
,
\s
*
)*
[
1
-
9
]
[
0
-
9
]
*
\s
*
\]
\s
*
)?
\]
$
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
6 months ago
2023-05-26 19:56