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...
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
24
27 upvotes, 3 downvotes (score 74.4%) (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 5 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
1 upvotes, 2 downvotes (score 6.1%) (You must be signed in to vote)
RegExp black list example usage
PCRE (PHP <7.3)
no description available
Submitted by
Vadim Markovtsev
-
9 years ago
2015-01-20 09:57
5
5 upvotes, 0 downvotes (score 56.6%) (You must be signed in to vote)
relative to absolute
PCRE (PHP <7.3)
relative to absolute
Submitted by
xp_prg
-
9 years ago
2015-01-20 01:16
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
testing for a bloke
PCRE (PHP <7.3)
Parsing html with regex is bad though.
Submitted by
Iroh
-
9 years ago
2015-01-18 03:42
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
deine regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2015-01-16 21:42
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regex to get video ID from Youtube links
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2015-01-16 18:53
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Flask detectar variables en url
PCRE (PHP <7.3)
Esta expresión regular permite detectar las variables que están declaradas dentro de una url o route del framework Flask, con esto lo único que queda es armar un loop que recorra las coincidencias y que las remplace por los valores adecuados
Submitted by
Jerry Anselmi <https://github.com/ElMijo>
-
9 years ago
2015-01-15 22:00
1
...
543
544
545
546
547
548
549
...
575
Regex to get video ID from Youtube links
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
(?:
youtube
(?:
-nocookie
)?
\.
com
/
(?:
[^
/
]
+
/
.
+
/
|
(?:
v
|
e
(?:
mbed
)?
)
/
|
.
*
[
?&
]
v=
)
|
youtu
\.
be
/
)
(
[^
"&?
/
]
{11}
)
/
i
Open regex in editor
Description
Loading markdown...
Submitted by
anonymous
-
9 years ago
2015-01-16 18:53