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...
2
Quiz_14_Spam_filter
PCRE2 (PHP >=7.3)
Match a string that contains any of the following substrings: http://, www., porn, or credit card. But don't match the text if it contains one of: not allowed, filter, or mirc. Don't use word boundaries (anywhere in the text is fine). If you need help, try reading this.
Submitted by
anonymous
-
3 months ago
2
Quiz_13_Match_Alternating_0s_And_1s_In_Any_Order
PCRE2 (PHP >=7.3)
I'm trying to match bit sequences which are alternating between 1 and 0 and never have more than one 1 or 0 in a row. They can be single digits. Try matching this: 0101010, 1010101010 or 1
Submitted by
anonymous
-
3 months ago
2
Quiz_12_Match_Any_Number_Between_0-100
PCRE2 (PHP >=7.3)
Could you help me validate my input and only match positive integers between the range of 0 and 100? There can be several numbers in a string which I would want to retrieve. Try out these example strings: ...
Submitted by
anonymous
-
3 months ago
1
Regular expression to remove all puncutation
Python
Removes all of the puncutation present inlcuding \n,\t,\r
Submitted by
Abhinav Gupta
-
11 years ago
2
Date validator for mm/dd/yy
ECMAScript (JavaScript)
no description available
Submitted by
Dheeraj Khushalani - dotnetguy.net
-
10 years ago
2
Positive Numbers greater than 0 with leading zeroes.
ECMAScript (JavaScript)
Accepts all positive numbers above 0. Accepts numbers with leading zeroes e.g.: 0123, 00123.
Submitted by
Sandeep Ranka
-
10 years ago
2
UK phone number
PCRE (PHP <7.3)
UK phone number
Submitted by
Andrea SonnY
-
9 years ago
2
42 post regex
PCRE (PHP <7.3)
Hosts regex for 42 school (france)
Submitted by
Kerosene2000
-
11 years ago
2
price float pattern
ECMAScript (JavaScript)
Checks that value is float format and has two digits at max
Submitted by
@jprajani
-
10 years ago
2
Regex tutorial Case sensitive consonants
PCRE (PHP <7.3)
With regex you can count the number of matches. Can you make it return the number of uppercase consonants (B,C,D,F,..,X,Y,Z) in a given string? E.g.: it should return 3 with the text ABcDeFO!. Note: Only ASCII. We consider Y to be a consonant! Example: the regex /./g will return 3 when run against t...
Submitted by
anonymous
-
5 years ago
2
sample
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
2
trim string
ECMAScript (JavaScript)
trim leading and trailing whitespace from a string
Submitted by
Dave Atchley
-
11 years ago
2
named group sample
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
2
postgesql
Python
no description available
Submitted by
anonymous
-
9 years ago
2
string contains
PCRE (PHP <7.3)
no description available
Submitted by
mgaus
-
9 years ago
1
IPv4&IPv6 URL validation regular expression
PCRE (PHP <7.3)
no description available
Submitted by
Henry Li
-
11 years ago
2
US and Canada Regex
ECMAScript (JavaScript)
A zipcode regex for validation of both US and Canada
Submitted by
Kyle M.
-
11 years ago
2
Unicode url sanitising
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
2
Url with <a> (param) validation
PCRE (PHP <7.3)
https://www.google.com http://www.google.net/hello https://www.google. http://www.google./hello above url matching with given regex...
Submitted by
Duleep Dissanayaka
-
11 years ago
2
Password Enforcement Pattern -- trailing pattern
PCRE (PHP <7.3)
This RegEx was posted on a Ruby site as one for enforcing password pattern. I added {8,32} to limit the length of the password, even though I realize no one has passwords longer than that. Rules: at least 1 digit, 1 special character (as defined), 1 upper case and 1 lower case character, between 8 ...
Submitted by
Dave Phillips
-
10 years ago
1
...
37
38
39
40
41
...
902
Community Library Entry
1
Regular Expression
Python
r"
^
(
(?P<a>
[
0
-
9
]
{1,3}
)
-
)?
(
(?P<b>
[
0
-
9
]
{1,3}
)
:
)?
(?P<cde>
(?P<c>
[
0
-
9A
-
F
]
{1,3}
)
.
(?P<d>
[
0
-
9A
-
F
]
{1,3}
)
(
.
(?P<e>
[
0
-
9A
-
F
]
{1,3}
)
)?
)
(
[
\*\&
]
(?P<f>
[
0
-
9A
-
F
]
{1,3}
)
)?
\(
(?P<value>
[^
*^
\)
]
*
)
(
(
[
\*
]
)
(?P<unit>
\w
*
)
)?
\)
$
"
gm
Open regex in editor
Description
Parsing OBIS Data
Submitted by
anonymous
-
a year ago
(Last modified a year ago)