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,660 community submitted regex patterns...
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Search tags "a" and get link and text from tags
PCRE (PHP <7.3)
Search group "link=>text" in tags "a"
Submitted by
Andy
-
8 years ago
2015-08-19 10:46
11
16 upvotes, 5 downvotes (score 54.9%) (You must be signed in to vote)
Codice fiscale
PCRE (PHP <7.3)
Check "codice fiscale"
Submitted by
Luca
-
8 years ago
2015-08-19 10:43
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
aabc lazy capture
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-18 20:55
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Simple Telephone number regex
PCRE (PHP <7.3)
It accepts phone numbers of the form 0XX XXX XX XX (stylized here, it doesn't really accept spaces). Also, it can detect the international area code (e.g. +41 OR 0041 for Switzerland). It's not a good idea to rely on the groups (because they do not work for this reason. At ALL.
Submitted by
Adowrath
-
8 years ago
2015-08-18 18:08
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Cleaning up epub converts
PCRE (PHP <7.3)
no description available
Submitted by
Cory
-
8 years ago
2015-08-18 15:06
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
HTTP => HTTPS
PCRE (PHP <7.3)
Force all URLs to HTTPS.
Submitted by
WhatIsHeDoing
-
8 years ago
2015-08-18 14:05
-2
2 upvotes, 4 downvotes (score 9.7%) (You must be signed in to vote)
lowercase words followed by uppercase words. Be able to separate words
PCRE (PHP <7.3)
Tinta del paísSuelo: Arena 100%Altitud media: 900mEdad del viñedo: PrefiloxeraRendimiento: 1800 Kg/haLugar: Ribera del Duero, FuentelcéspedBodega:Bodegas y Viñedos Juan Manuel Burgos
Submitted by
Eduard eduard.fabra@uvinum.com
-
8 years ago
2015-08-18 10:44
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Parse Logs
PCRE (PHP <7.3)
http://stackoverflow.com/questions/32067661/regex-get-all-text-after-pattern-from-log-c-sharp/32067747#32067747
Submitted by
anonymous
-
8 years ago
2015-08-18 09:29
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Parse Logs
PCRE (PHP <7.3)
http://stackoverflow.com/questions/32067661/regex-get-all-text-after-pattern-from-log-c-sharp/32067747#32067747
Submitted by
anonymous
-
8 years ago
2015-08-18 09:28
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Parse Logs
PCRE (PHP <7.3)
Parsing Logs http://stackoverflow.com/questions/32067661/regex-get-all-text-after-pattern-from-log-c-sharp/32067747#32067747 Avinash Raj http://stackoverflow.com/users/3297613/avinash-raj
Submitted by
Avinash Raj
-
8 years ago
2015-08-18 09:27
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Youtube ID
PCRE (PHP <7.3)
get youtube video ID
Submitted by
anonymous
-
8 years ago
2015-08-18 06:33
3
3 upvotes, 0 downvotes (score 43.8%) (You must be signed in to vote)
Currencies
PCRE (PHP <7.3)
Matches numbers formatted like currencies
Submitted by
elgehelge
-
8 years ago
2015-08-17 14:14
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Parse date between 1000 and 2012 in format(YYYY/MM/DD HH:MM)
PCRE (PHP <7.3)
This my first regExp)
Submitted by
Andy
-
8 years ago
2015-08-17 11:43
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
BEM for css
PCRE (PHP <7.3)
no description available
Submitted by
giacomozinetti
-
8 years ago
2015-08-17 10:10
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
hosts file parser
PCRE (PHP <7.3)
This expression parses hosts file lines and extracts IP, domains, commented lines. Yet doesn't support ending comments.
Submitted by
Jarek Wasilewski
-
8 years ago
2015-08-16 20:06
-1
2 upvotes, 3 downvotes (score 11.8%) (You must be signed in to vote)
Integers and Decimals
PCRE (PHP <7.3)
Matches integers and decimals with or without thousands grouping.
Submitted by
Franz Alex Gaisie-Essifie
-
8 years ago
2015-08-16 13:48
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
ip/host:port parser (proxy lists)
PCRE (PHP <7.3)
simple ip:port or host:port parser capturing ip or host and port, usually used for proxy lists
Submitted by
The Voider
-
8 years ago
2015-08-16 03:11
4
4 upvotes, 0 downvotes (score 51%) (You must be signed in to vote)
TV series season and episode names
PCRE (PHP <7.3)
This regex matches against season and series names
Submitted by
mikey
-
8 years ago
2015-08-16 00:43
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Shortcode_filter
PCRE (PHP <7.3)
CLeans your HTML code from shortcodes and images :)
Submitted by
Colta Victor
-
8 years ago
2015-08-15 11:15
1
2 upvotes, 1 downvotes (score 20.8%) (You must be signed in to vote)
Matches Content-Type field of HTTP response
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
2015-08-14 17:53
1
...
523
524
525
526
527
528
529
...
583
SQL: insert into
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
insert
[
\s
]
+
into
[
\s
]
+
\(
[
\s
]
*
(?<columns>
.
*
?
)
[
\s
]
*
\)
[
\s
]
+
values
[
\s
]
+
\(
(?<values>
.
*
?
)
[
\s
]
*
\)
;
/
gmi
Open regex in editor
Description
Loading markdown...
Submitted by
suat erenler
-
8 years ago
2015-07-25 10:57