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
Community Patterns
Search among 3,800 community submitted regex patterns...
0
Simple CSS selectors
ECMAScript (JavaScript)
Matches all types of CSS selectors
Submitted by
anonymous
-
a year ago
(Last modified a year ago)
0
Regex to Ignore Emoji/Emoticons
ECMAScript (JavaScript)
Regex to Ignore Emoji/Emoticons and allows every character
Submitted by
vishalx06
-
a year ago
0
find a 6 lenght word with 2 consecutive digits
ECMAScript (JavaScript)
ragex solution for free code camp positive-and-negative-lookahead first assertion is (?=\w{6,}) where im matching for any char (a-z0-9_) and repeating the char matching 6 times, in other words, verifying that this word has 6 char being them a-z or digits. the second assertion was more difficult to...
Submitted by
gabriel silva lima
-
8 months ago
0
GET country, prefix extended
ECMAScript (JavaScript)
This regex match group (country & Prefix) Separated by spaces or \s+ ↓↓ Example ↓↓ Australia 61 Dominica 1 (767) República Dominicana 1 (809/829/849) ...
Submitted by
https://github.com/hzvvictor
-
8 months ago
(Last modified 8 months ago)
0
Sustitution of comments (one line) //
ECMAScript (JavaScript)
Sustitution of comments (one line) // Example ~ input (before) ↓↓ : // comment textplain other-text ...
Submitted by
hzvvictor: https://github.com/hzvvictor
-
8 months ago
(Last modified 8 months ago)
-3
Strict email validation
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
-1
Australian local and international mobile validation
ECMAScript (JavaScript)
no description available
Submitted by
Damien Capocchi
-
8 years ago
-1
Replace comma separated decimals (comma instead of point)
ECMAScript (JavaScript)
Matches, line by line, a comma separated list of decimal numbers with comma as decimal character (Spanish way) Produces a list of comma separated pairs (space separated innermost) of decimal numbers with point as decimal character (English way)
Submitted by
Bruno A. Castro
-
8 years ago
-1
DD/MM/YYYY
ECMAScript (JavaScript)
no description available
Submitted by
nehakadam
-
8 years ago
-1
Only letters without numbers
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
8 years ago
-1
Arabic AlphaNumeric
ECMAScript (JavaScript)
Arabic AlphaNumeric text
Submitted by
Ahmed
-
8 years ago
-1
Sri Lankan NIC Regex
ECMAScript (JavaScript)
Regular Expression to validate NIC of Sri lankna (National Identity Card)
Submitted by
Sithira Munasinghe
-
8 years ago
-1
IPv4 Matcher
Java 8
This RE is divided into four parts. The first three parts are acceptable numbers from 0 to 255 followed by "." The last part is an acceptable number but not followed by "."
Submitted by
EMAM1999
-
3 years ago
-1
rtrtr
Golang
gtgtg
Submitted by
anonymous
-
3 years ago
-2
I need some one to generate an regexp please
ECMAScript (JavaScript)
I need regular expression for the string WC_AUTHENTICATION_1343459084. Here WC_AUTHENTICATION_ remains fixed and the number keeps changing. I have written the below logic. var re = new RegExp('[; ]'+"WC_PERSISTENT"+'[0-9]'); Please help
Submitted by
Sanuvimal.Mohan@target.com
-
9 years ago
-2
S3 log analysis
ECMAScript (JavaScript)
An updated S3 log analyzer. I found that my logs sometimes had strings quoted, so I needed to add possible handling for that.
Submitted by
Matt Ingenthron <ingenthr@cep.net>
-
9 years ago
-2
Username
ECMAScript (JavaScript)
^[_a-zA-Z0-9]+$ how to make regex username with underscore. i'm using c# but this regex isn't working.
Submitted by
anonymous
-
9 years ago
-2
Any telephone number with region and country in any format
ECMAScript (JavaScript)
Matches any telephone number with region parentesis, or separated by points or dash or spaces
Submitted by
https://co.linkedin.com/in/andresfelipecardona
-
9 years ago
-2
Check syntax port ACL VNG
ECMAScript (JavaScript)
no description available
Submitted by
nguyenvq
-
9 years ago
-2
cron expression
ECMAScript (JavaScript)
This is a relaxed cron validation, meaning that any valid cron expression should pass this; but not anything that passes regex validation is a good cron expression. Used as preliminary validation in web ui. Supports all special characters. Includes seconds field.
Submitted by
enlait
-
9 years ago
1
...
79
80
81
82
83
...
190
simple url to web site match
0
Regular Expression
ECMAScript (JavaScript)
/
(
(
(
(
http
|
https
)
:
(?:
\/\/
)?
)
(?:
[
-;:&=
\+\$
,
\w
]
+
@
)?
[
A
-
Za
-
z0
-
9.-
]
+
|
(?:
www
.
|
[
-;:&=
\+\$
,
\w
]
+
@
)
[
A
-
Za
-
z0
-
9.-
]
+
)
(
(?:
\/
[
\+
~%
\/
.
\w
-
_
]
*
)?
\?
?
(?:
[
-
\+
=&;%@.
\w
_
]
*
)
(
\.
\w
{2,3}
)
)
)
/
i
Open regex in editor
Description
simple url to web site match (es6)
Submitted by
anonymous
-
7 years ago