Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Donate
Info
Regex Editor
Community Patterns
Account
Regex Quiz
Settings
Order By
Most Recent
Most upvotes
Most downvotes
Highest Score
Lowest Score
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 18,040 community submitted regex patterns...
1
Extract times from a string
PCRE (PHP <7.3)
I use this to extract and later calculate the difference between two times.
Submitted by
Ernie C.
-
9 years ago
1
Simple Valid File Names
ECMAScript (JavaScript)
Simple file names. Special chars allowed (-_.) {3, 40}
Submitted by
CADII
-
9 years ago
2
extract twitter username from url
ECMAScript (JavaScript)
Adopted one of answers from: http://stackoverflow.com/questions/5948051/regex-extract-twitterusername-from-url
Submitted by
anonymous
-
9 years ago
1
get number and unit in string
ECMAScript (JavaScript)
match int or float number, and following word (unit for example)
Submitted by
Etienne Goumet
-
9 years ago
2
Get email info
PCRE (PHP <7.3)
Get Gmail tag, user and domain of an email address
Submitted by
Matías Pizarro González
-
9 years ago
1
GET EMAIL INFO (3)
PCRE (PHP <7.3)
Get Gmail tag, user and domain of an email address. -- Fixed the bug that the label doesn't match if there are an dot on user.
Submitted by
Matías Pizarro González
-
9 years ago
2
TimeFormatParser
PCRE (PHP <7.3)
This allows to the programer to match the time format groups, in a way that allow to discard some parts of the format. E.g. I have a format HhMmSs and i want to ignore the 'Ss' part from the format when I have no Seconds
Submitted by
Fausto A. Guerrero
-
9 years ago
1
country name
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
3
sql: insert into
PCRE (PHP <7.3)
insert into (a,b,c) values (1,2.3,"test");
Submitted by
suat erenler - sua.gen.tr
-
9 years ago
3
hj
PCRE (PHP <7.3)
hj
Submitted by
hj
-
9 years ago
2
CSS URL parser tilde only
ECMAScript (JavaScript)
Find any url('~filename.jpg'). URL must contain tilde
Submitted by
@adjavaherian
-
9 years ago
3
Match a URL from a text message
ECMAScript (JavaScript)
I use this to match the first url present in a text message.
Submitted by
anonymous
-
9 years ago
0
SSN
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
Does not match
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2
Full URI Mapping
PCRE (PHP <7.3)
Everything, including proto, user:pass, host, query params and anchors
Submitted by
baadf00d
-
9 years ago
3
currency
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2
Unicode username
ECMAScript (JavaScript)
Unicode user name check with som allowed non-alhanum characters
Submitted by
Martin Bucko
-
9 years ago
3
Currencies
PCRE (PHP <7.3)
Matches numbers formatted like currencies
Submitted by
elgehelge
-
9 years ago
2
Portuguese phone numbers
ECMAScript (JavaScript)
Matches Portuguese phone numbers.
Submitted by
github.com/luis140219
-
9 years ago
1
Get src in img
PCRE (PHP <7.3)
Get src in img
Submitted by
Andy
-
9 years ago
1
...
29
30
31
32
33
...
902
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
(?=
>
(
[
$0
-
9,
\.
]
*
)
)
/
i
Open regex in editor
Description
no description available
Submitted by
anonymous
-
9 years ago