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,160 community submitted regex patterns...
2
4 upvotes, 2 downvotes (score 30%) (You must be signed in to vote)
Find any digits in string
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-04-11 11:31
1
7 upvotes, 6 downvotes (score 29.1%) (You must be signed in to vote)
Parse a HTML URL
Python
Break a URL into parts: protocol url path get parameters hash
Submitted by
Dale O'Brien
-
9 years ago
2014-05-22 23:07
1
7 upvotes, 6 downvotes (score 29.1%) (You must be signed in to vote)
dd/mm/yyyy validation regexp
Python
no description available
Submitted by
uknnown
-
8 years ago
2015-09-17 10:54
1
6 upvotes, 5 downvotes (score 28%) (You must be signed in to vote)
REGEX
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-04-04 13:58
1
5 upvotes, 4 downvotes (score 26.7%) (You must be signed in to vote)
IPv4 extraction
Python
no description available
Submitted by
Jacob
-
9 years ago
2014-04-04 13:05
1
5 upvotes, 4 downvotes (score 26.7%) (You must be signed in to vote)
quoted string in VB.net format
Python
Get all strings in vb.net format (even nested quotes"
Submitted by
Alan Moore (http://stackoverflow.com/questions/2148587/finding-quoted-strings-with-escaped-quotes-in-c-sharp-using-a-regular-expression) modified by j
-
9 years ago
2014-05-20 11:06
1
4 upvotes, 3 downvotes (score 25%) (You must be signed in to vote)
States
Python
States (US) 2 char format, matches: Ga or GA
Submitted by
miqui
-
8 years ago
2015-05-06 17:38
0
5 upvotes, 5 downvotes (score 23.7%) (You must be signed in to vote)
Get any word before specific string
Python
no description available
Submitted by
anonymous
-
8 years ago
2015-09-05 06:41
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
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
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
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
-
8 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
-
8 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
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
apache log parser
Python
no description available
Submitted by
Claudio Borges
-
8 years ago
2015-10-29 14:22
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
json comment - first attempt
Python
no description available
Submitted by
Mark
-
8 years ago
2015-11-05 20:27
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Address Match
Python
no description available
Submitted by
Awk
-
8 years ago
2015-11-16 15:43
0
4 upvotes, 4 downvotes (score 21.5%) (You must be signed in to vote)
Find email address in a string.
Python
no description available
Submitted by
anonymous
-
9 years ago
2014-06-11 17:57
-1
5 upvotes, 6 downvotes (score 21.3%) (You must be signed in to vote)
woop
Python
no description available
Submitted by
anonymous
-
9 years ago
2015-02-15 22:12
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Captures entire log line that meet the criteria
Python
If you need to grab an entire log line based on criteria (error,warning,notice,info,debug), use this Regexp and change the parameters accordingly.
Submitted by
Neill Lima
-
9 years ago
2014-07-24 14:49
1
2
3
4
5
6
7
8
...
108
Match using named groups in .NET (C#)
0
0 upvotes, 0 downvotes (score 0%) (You must be signed in to vote)
Regular Expression
.NET (C#)
@"
(?<remotename>
\w
*
)
(?<seperator>
\/
)
(?<branchname>
\w
*
)
"
gm
Open regex in editor
Description
Loading markdown...
Submitted by
marckassay
-
a year ago
2022-06-17 14:14