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
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 7.0 (C#)
Rust
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 9,420 community submitted regex patterns...
0
Match all attributes/values of html document
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
url GET parameters
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
Parse JSON key value pair
PCRE (PHP <7.3)
no description available
Submitted by
Kostas Trichas
-
10 years ago
0
Match all html tags
PCRE (PHP <7.3)
no description available
Submitted by
Kostas Trichas
-
10 years ago
0
Challenge: Create regular expression that matches the following urls
PCRE (PHP <7.3)
Note the 2 lines separated urls. These should NOT match
Submitted by
kostas trichas
-
10 years ago
0
Share?
PCRE (PHP <7.3)
Test
Submitted by
test
-
10 years ago
0
number with or without thousands separator(.) and decimal part(,)
PCRE (PHP <7.3)
number with or without thousands separator(.) and decimal part(,) ES: 100000; 1.646; 13323,33; 3.444.434,44
Submitted by
Basten
-
10 years ago
0
webongo
PCRE (PHP <7.3)
webongo test
Submitted by
webongo
-
10 years ago
0
Hostname-Match not found
PCRE (PHP <7.3)
I'm trying to match a hostname input with the following properties: a-z A-Z 0-9 : - are allowed ; doesnot start or end with - ; "." can be used to separate different labels of the hostname. But gives no match for this regex: ^(a-zA-Z0-9|(?<!-)\.(?![-.]))[a-zA-Z0-9]+)?)$...
Submitted by
Revathy
-
10 years ago
0
Page Hangs in Chrome/Shows TIMEOUT on regex101.com
PCRE (PHP <7.3)
I have a regex like this: /^(A-Za-z0-9)([\.\_]?[A-Za-z0-9-]+)(\.[A-Za-z]{2,6})+(\/A-Za-z+)*$/ and I want to test the string like: webmail.google.com.qqqqqqqqqqqqqqqqqqq....... But it shows TIMEOUT. I know that string is invalid for given regex. But I do this because when I input this string and ma...
Submitted by
sam
-
10 years ago
0
search h1 tag html
PCRE (PHP <7.3)
(.*?) example: Your best title
Submitted by
otharwa
-
10 years ago
0
Unicode alpha-numeric regex
PCRE (PHP <7.3)
Tests for all unicode language characters and number. Excludes any sentence joining characters etc.
Submitted by
Jamie
-
10 years ago
0
first regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
Domain Name .CZ - only 2th level format
PCRE (PHP <7.3)
Valid only for something.cz, some-thing.cz, 2245exampl.cz ... Not-valid for -some.cz, here.com.cz ...
Submitted by
Pavel Ondřej
-
10 years ago
0
GlobalRange-phone-fax
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
e164_basic
PCRE (PHP <7.3)
e164_basic
Submitted by
anonymous
-
10 years ago
0
Validate date
PCRE (PHP <7.3)
Validate date in format dd/mm/yyyy dd.mm.yyyy dd-mm-yyyy or dd/mm/yy dd.mm.yy dd-mm-yy GetFrom -> http://stackoverflow.com/questions/15491894/regex-to-validate-date-format-dd-mm-yyyy
Submitted by
Dilakv
-
10 years ago
0
asf
PCRE (PHP <7.3)
asfd
Submitted by
asdf
-
10 years ago
0
rwe
PCRE (PHP <7.3)
rwerw
Submitted by
rwerw
-
10 years ago
0
None
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
...
12
13
14
15
16
...
471
Hostname validation
3
Regular Expression
Golang
`
(?i)
^
(?:
(
[
a
-
z0
-
9-
]
+
|
\*
)
\.
)?
(
[
a
-
z0
-
9-
]
{1,61}
)
\.
(
[
a
-
z0
-
9
]
{2,7}
)
$
`
gm
Open regex in editor
Description
Validates subdomain, root domain, and wild card domains
Submitted by
AnonymousDapper
-
7 years ago