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,020 community submitted regex patterns...
1
Match Markup
PCRE (PHP <7.3)
no description available
Submitted by
A
-
10 years ago
0
Number matching RE
ECMAScript (JavaScript)
Optional plus or minus sign. Leading zero required for decimal number less than zero.
Submitted by
Mario Diana
-
10 years ago
2
filename split 2
ECMAScript (JavaScript)
no description available
Submitted by
Miloš Ratković
-
10 years ago
0
filename split
ECMAScript (JavaScript)
Splitting file names
Submitted by
Miloš Ratković
-
10 years ago
1
number validator
PCRE (PHP <7.3)
exclude data with space and "-"
Submitted by
HMK
-
10 years ago
1
Number invalidator
PCRE (PHP <7.3)
Including +/-12.3. etc. Excluding MH12, etc.
Submitted by
HMK
-
10 years ago
2
Javascript: howto get rid of resulting ""
ECMAScript (JavaScript)
Hey folks, I try to do smth like this: var s = 'this is a "" && "string constant" and this "is another" one', result = s.match(new RegExp('"{1}(.*?)"{1}', 'g')); console.log(result);...
Submitted by
anonymous
-
10 years ago
1
YOLO
PCRE (PHP <7.3)
Substitutes "you only live once" with "YOLO".
Submitted by
anonymous
-
10 years ago
-2
Maintain portion in the middle
PCRE (PHP <7.3)
no description available
Submitted by
HMK
-
10 years ago
-2
Password filter
PCRE (PHP <7.3)
a regular expression validate the passowrd. The criteria is that the password should contain atleast one upper case and one lower case letter.
Submitted by
HMK
-
10 years ago
1
Regex Formula for matching 2 letter Prefix URL's
PCRE (PHP <7.3)
I am trying to write a Regex formula that will match to all URL's with specifically 2 letter prefixes. I have a list of close to 1000 websites, and I need a formula that will collect data from any sites that start with "..".sporttu.com. For example, I want it to match to sites like ca.sporttu and ...
Submitted by
MikeRo
-
10 years ago
1
quotes and escapes
PCRE (PHP <7.3)
no description available
Submitted by
zgorawski
-
10 years ago
2
Creditcard expiry date checker
PCRE (PHP <7.3)
Checks if a expiry date is: mm/yy. You still have to check if it is a valid expiry date timewise.
Submitted by
Pevawi
-
10 years ago
1
regular expression - with space
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
regular expression to avoid white spaces
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
test url
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
1
PCRE (PHP <7.3)
23123
Submitted by
anonymous
-
10 years ago
1
test
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
2
Match subset
PCRE (PHP <7.3)
no description available
Submitted by
Jason
-
10 years ago
-2
example
Python
match
Submitted by
anonymous
-
10 years ago
1
...
882
883
884
885
886
...
901
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(
\+
98
|
0
|
98
|
0098
)?
(
[
]
|
-
|
[
()
]
){0,2}
9
[
0
-
9
]
(
[
]
|
-
|
[
()
]
){0,2}
(?:
[
0
-
9
]
(
[
]
|
-
|
[
()
]
){0,2}
){8}
/
gm
Open regex in editor
Description
Regular expression Regix for Iranian mobile phone numbers
Submitted by
anonymous
-
2 years ago