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...
5
6 upvotes, 1 downvotes (score 48.7%) (You must be signed in to vote)
Bible reference extractor
Python
For scraping http://skepticsannotatedbible.com/
Submitted by
antaytheist-owner
-
8 years ago
2016-04-04 08:31
5
5 upvotes, 0 downvotes (score 56.6%) (You must be signed in to vote)
Find and extract email domain
Python
Find and extract email domain. Ex: test@example.pt -> extract 'example.pt'
Submitted by
Fnxk
-
8 years ago
2016-04-03 17:03
5
5 upvotes, 0 downvotes (score 56.6%) (You must be signed in to vote)
Match Only Text
Python
no description available
Submitted by
anonymous
-
7 years ago
2016-07-05 03:56
1
5 upvotes, 4 downvotes (score 26.7%) (You must be signed in to vote)
IPv4 extraction
Python
no description available
Submitted by
Jacob
-
10 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
-
10 years ago
2014-05-20 11:06
-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
5
5 upvotes, 0 downvotes (score 56.6%) (You must be signed in to vote)
IOS3166 Country Code Identification REGEX
Python
IOS3166 Country Code Identification REGEX
Submitted by
theitgeek@recu.org.uk
-
8 years ago
2015-06-07 04:48
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
5
5 upvotes, 0 downvotes (score 56.6%) (You must be signed in to vote)
Form Tag
Python
Form Tag
Submitted by
Jay Patel
-
8 years ago
2016-02-26 06:49
5
5 upvotes, 0 downvotes (score 56.6%) (You must be signed in to vote)
psswd
Python
no description available
Submitted by
anonymous
-
8 years ago
2016-03-24 09:04
-1
4 upvotes, 5 downvotes (score 18.9%) (You must be signed in to vote)
Twitter #hashtags
Python
Using the twitter API, take a tweet object and find & link #tags to embed in HTML
Submitted by
@triplec1988
-
10 years ago
2013-10-17 17:40
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
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
-
9 years ago
2015-04-11 11:31
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
-
9 years ago
2015-05-06 17:38
-4
4 upvotes, 8 downvotes (score 13.8%) (You must be signed in to vote)
Matches percentage with any number of digits
Python
Only captures value for converting percentage to decimal. Returns empty if percentage but no value. no match = no percentage found
Submitted by
sharkey
-
8 years ago
2015-06-10 19:26
3
4 upvotes, 1 downvotes (score 37.6%) (You must be signed in to vote)
prices in nis
Python
no description available
Submitted by
molaxx
-
8 years ago
2015-06-15 15:16
4
4 upvotes, 0 downvotes (score 51%) (You must be signed in to vote)
Equation matching (without equal)
Python
use this to get value of any side of an equation. You can combine this with https://regex101.com/r/fH5kJ1/1
Submitted by
Kerosene2000
-
8 years ago
2015-07-01 19:50
-2
4 upvotes, 6 downvotes (score 16.8%) (You must be signed in to vote)
Between two strings
Python
Awesome explanation of nested lookbacks
Submitted by
OnlineCop
-
8 years ago
2015-10-27 19:18
4
4 upvotes, 0 downvotes (score 51%) (You must be signed in to vote)
import url image
Python
import url image
Submitted by
bartimeys
-
8 years ago
2015-12-18 08:44
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Extract URL parts only named capturing groups
Golang
Extract URL parts only named capturing groups
Submitted by
dixanms
-
2 years ago
2022-02-03 00:00
1
2
3
4
5
...
114