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 11,500 community submitted regex patterns...
-2
2 upvotes, 4 downvotes (score 9.7%) (You must be signed in to vote)
python bracketed text
Python
why doesn't this match text in brackets?
Submitted by
anonymous
-
9 years ago
2015-01-27 21:53
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Email validation
PCRE (PHP <7.3)
because everything else is too strict
Submitted by
anonymous
-
9 years ago
2015-01-27 15:35
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Stackexchange: Create date variable from time
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2015-01-27 14:39
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
rvewr
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2015-01-27 12:00
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
URL with matching categories
PCRE (PHP <7.3)
Finds the protocol, subdomain, ((domain, extension)/ipaddress), port, filepath (split in path and filename), the route and the query string.
Submitted by
fps
-
9 years ago
2015-01-26 20:38
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
match any email address in list
PCRE (PHP <7.3)
no description available
Submitted by
cloneman
-
9 years ago
2015-01-26 19:57
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Match mydomain*.mydomain.com
PCRE (PHP <7.3)
no description available
Submitted by
Trappist
-
9 years ago
2015-01-25 04:43
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Пошук Ñмайлів
PCRE (PHP <7.3)
ПроÑтенька демонÑÑ‚Ñ€Ð°Ñ†Ñ–Ñ Ð¿Ð¾ÑˆÑƒÐºÑƒ Ñмайлів за допомогою регулÑрних виразів
Submitted by
КоÑÑ‚Ñ Ð¢Ñ€ÐµÑ‚Ñк
-
9 years ago
2015-01-25 03:01
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Ja som's regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2015-01-23 22:04
21
24 upvotes, 3 downvotes (score 71.9%) (You must be signed in to vote)
Parsing browser User Agents
PCRE (PHP <7.3)
From a (fairly large) list of User Agent strings, extract the OS, Browser, and Device Type.
Submitted by
OnlineCop
-
9 years ago
2015-01-23 16:47
(Last modified 2 months ago)
2023-07-19 08:36
-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
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Extract elevation from GPX
PCRE (PHP <7.3)
Matches everything except content between and
Submitted by
ViteXikora
-
9 years ago
2015-01-22 22:08
4
5 upvotes, 1 downvotes (score 43.6%) (You must be signed in to vote)
AMEX, VISA, MASTERCARD, and DISCOVER REGEX
PCRE (PHP <7.3)
First pass at a way to find credit card data using regex.
Submitted by
David Maislin
-
9 years ago
2015-01-22 04:23
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Currency amount without currency symbol
PCRE (PHP <7.3)
Matching numbers related to financial amounts. Does not consider the type of currency. Will not match: 34 1.005 33,00...
Submitted by
elgehelge
-
9 years ago
2015-01-21 16:10
2
5 upvotes, 3 downvotes (score 30.6%) (You must be signed in to vote)
Currency amount without currency symbol
PCRE (PHP <7.3)
Matches numbers that are likely to by financial amount. Does not consider the type of currency.
Submitted by
elgehelge
-
9 years ago
2015-01-21 16:07
3
4 upvotes, 1 downvotes (score 37.6%) (You must be signed in to vote)
Alternative Capture Country Codes
PCRE (PHP <7.3)
no description available
Submitted by
Branden
-
9 years ago
2015-01-21 13:59
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Google plus post regex
PCRE (PHP <7.3)
Retrieve username or user id and post id, example urls: https://apis.google.com/u/0/wm/1/118176280023244994777/posts/4q6esduuinn https://plus.google.com/+Username/posts/4q6ezduuinn https://plus.google.com/118176280323144994777/posts/4q6ezduuinn
Submitted by
Misthero
-
9 years ago
2015-01-21 13:57
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Alternatvie Country Code Capture
Python
no description available
Submitted by
Branden
-
9 years ago
2015-01-21 13:56
-1
2 upvotes, 3 downvotes (score 11.8%) (You must be signed in to vote)
Alternative With Capture Groups
Python
Capture alternative items matching end of lines country codes
Submitted by
Branden
-
9 years ago
2015-01-21 13:52
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
test
Python
test
Submitted by
test
-
9 years ago
2015-01-20 20:10
1
...
542
543
544
545
546
547
548
...
575
Extract elevation from GPX
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(
<
\/
ele>
|
^
)
.
*
?
(
<ele>
|
$
)
/
gs
Open regex in editor
Description
Loading markdown...
Submitted by
ViteXikora
-
9 years ago
2015-01-22 22:08