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,180 community submitted regex patterns...
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Caltrans EA validation with optional XX-XXXXXX entry and C##-#????#
.NET (C#)
Checks validity of an EA number first two digits 01-12 followed by hyphen then a number from 0-4 and then 4 numbers or uppercase letters and ending in a 1 or 4 for example "05-1J7601". Adding a capital C to the beginning is also accepted "C05-1J7601", along with the entry of 2 X's hyphen and 6 X's ...
Submitted by
RDJ@Ct
-
8 months ago
2023-04-07 19:11
(Last modified 8 months ago)
2023-04-07 19:51
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
C# Regex Extract/Match Nested HTML Elements/Tags
.NET (C#)
With this C# regex, you can easily match/Parse Nested HTML tags. Example input: someTitle ...
Submitted by
w4po
-
2 years ago
2022-03-03 19:13
(Last modified 4 months ago)
2023-08-01 07:26
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Match any layer bracket pair (.NET)
.NET (C#)
Match any layer bracket pair
Submitted by
Yakumo Yukari
-
2 years ago
2022-03-10 03:13
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Strip ANSI escape characters
Python
no description available
Submitted by
anonymous
-
10 years ago
2014-02-26 14:28
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Palabras en mayúscula que no están después de un punto
Python
no description available
Submitted by
anonymous
-
10 years ago
2014-04-18 16:57
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Parasite subtitles
Python
no description available
Submitted by
Andrey Spiridonov
-
10 years ago
2014-05-19 18:38
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
how to match both lines?
Python
f_name may contain spaces, numbers, characters,... so I would go for a but then I couldn't use [...]? anymore to match the second line?
Submitted by
anonymous
-
9 years ago
2014-07-22 09:38
-3
3 upvotes, 6 downvotes (score 12.1%) (You must be signed in to vote)
Match substitutions
Python
Match regular expressions substitutions, I personally use this to perform my validate if it is a substitution, then call re.sub() on it.
Submitted by
Zarthus
-
9 years ago
2014-07-26 13:32
-2
3 upvotes, 5 downvotes (score 13.7%) (You must be signed in to vote)
Basic grammar for regex matching of simplistic Makefiles
Python
This expression should both normal and wildcard targets and rules wrapped in simple sub-shell or varriable substitution enclosures.
Submitted by
Robert Butler <me@r-butler.net>
-
9 years ago
2014-08-13 01:11
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Find URLs in markdown where the lines have been wrapped
Python
no description available
Submitted by
anonymous
-
9 years ago
2014-08-26 21:13
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
python regex
Python
no description available
Submitted by
anonymous
-
9 years ago
2014-09-05 20:18
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
sad smiley
Python
looks for a sad smiley with a backslash
Submitted by
@barraponto
-
9 years ago
2014-11-13 20:34
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Capture 5 words either side of a match string
Python
no description available
Submitted by
anonymous
-
9 years ago
2014-11-28 04:37
-1
3 upvotes, 4 downvotes (score 15.8%) (You must be signed in to vote)
text beetween text
Python
no description available
Submitted by
karol
-
9 years ago
2015-01-23 10:35
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
check phone number(Taiwan)
Python
If pattern match, then this number probably is a phone number in Taiwan.
Submitted by
Assalin
-
9 years ago
2015-02-03 05:54
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
Match 5 forward slashes
Python
Match 5 forward slashes
Submitted by
anonymous
-
9 years ago
2015-04-16 23:13
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Find exeptions in log4j
Python
regex to consider exceptions in log4j
Submitted by
anonymous
-
9 years ago
2015-04-23 13:19
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
postfix
Python
get ip identifier, queue name, email domain and status from postfix log
Submitted by
kglod
-
9 years ago
2015-05-07 11:21
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Timecode
Python
Regex to match standard timecode format. (Updated with fewer groups).
Submitted by
Travis
-
8 years ago
2015-06-10 07:41
2
3 upvotes, 1 downvotes (score 30.1%) (You must be signed in to vote)
IPv4 Validator
Python
no description available
Submitted by
dannyo
-
8 years ago
2015-09-10 08:17
1
2
3
4
5
6
...
109
Enum map to test cases
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
[
\t
]
*
(
[
\w
.
]
+
)
=>
(
[
\w
.
]
+
)
[
,
]
*
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
DenKu1
-
a year ago
2022-11-16 15:23