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 4,900 community submitted regex patterns...
1
Reasonable E-mail Validator v1.0
PCRE2 (PHP >=7.3)
Here is what I came up with for a 'reasonable' e-mail validator. Explanation @ https://geekalicious.org/d/90-validating-e-mail-addresses-with-regex-pcre
Submitted by
16BitMiker.com
-
3 years ago
0
Extract words start with _ and end with ;
PCRE2 (PHP >=7.3)
Extract words start with _ and end with ;
Submitted by
Ashish Shah
-
3 years ago
1
Search for word breaks in CamelCase string
PCRE2 (PHP >=7.3)
This finds the boundaries of words in a camel case string
Submitted by
https://stackoverflow.com/questions/7593969/regex-to-split-camelcase-or-titlecase-advanced
-
3 years ago
0
Regex to match 1000, >1000, >=1000, =1000, <=1000, ~1000
PCRE2 (PHP >=7.3)
Regex to match special characters followed by a specific number(1000)
Submitted by
Mehul Thakkar
-
3 years ago
0
Remove specified entry from etcd configuration
Python
Given a hostname, which in the example is app-failedhost-eeeeeeeeee.node.consul, and a ETCD_INITIAL_CLUSTER= line with three hosts listed, print out the line with the given host removed Examples (3) with the host in first, second, or last position
Submitted by
stephenwb
-
3 years ago
0
Match all text&newlines inside
Python
...
Submitted by
karkraeg
-
3 years ago
2
Email Extractor
PCRE2 (PHP >=7.3)
([a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9_-]+)
Submitted by
Kashif
-
3 years ago
0
regex_avex_commerce
Python
regex
Submitted by
guif
-
3 years ago
0
regex_avec_bureau2
Python
regex
Submitted by
guif
-
3 years ago
0
Cities
PCRE2 (PHP >=7.3)
Cities
Submitted by
anonymous
-
3 years ago
0
regex_avec_bureau
Python
nlp
Submitted by
guif
-
3 years ago
0
найдет все числа и отрицательные и положительные в строке
PCRE2 (PHP >=7.3)
` const s = '23+-22.2222+-2334+5-5/225-8'; const re = /(?!:\W)(\-)?(\d+)[.]?(\d+)?/gm; console.log ( s.match ( re ) ); //[ '23', '-22.2222', '-2334', '5', '-15', '22', '5', '-8' ] `
Submitted by
Kasap Victor
-
3 years ago
0
Слова які починаються та закінчуються одинаково
PCRE2 (PHP >=7.3)
Слова які починаються та закінчуються одинаково
Submitted by
DJI
-
3 years ago
0
Виділення слів в тексті
PCRE2 (PHP >=7.3)
Виділення слів в тексті
Submitted by
anonymous
-
3 years ago
0
Regex 1
Java 8
Розділення речень в тексті
Submitted by
DJI
-
3 years ago
0
GitLab Path
PCRE2 (PHP >=7.3)
GitLab Path
Submitted by
anonymous
-
3 years ago
0
regex_tous_commerce
Python
nlp
Submitted by
guif
-
3 years ago
0
Detect French way
Python
Test if a string contains a french way word
Submitted by
anonymous
-
3 years ago
0
Regular expression for nested Curly brackets
PCRE2 (PHP >=7.3)
Regular expression for nested Curly brackets
Submitted by
Romuald
-
3 years ago
0
Format Australian Bank BSB number
PCRE2 (PHP >=7.3)
Format Australian Bank BSB number
Submitted by
anonymous
-
3 years ago
1
...
132
133
134
135
136
...
245
Mobile Number Regex
2
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(
(?:
[
1
-
9
]
[
0
-
9
().-
]
{5,28}
[
0
-
9
]
)
|
(?:
(
00
|
0
)
(
){0,1}
[
1
-
9
]
[
0
-
9
().-
]
{3,26}
[
0
-
9
]
)
|
(?:
(
\+
)
(
){0,1}
[
1
-
9
]
[
0
-
9
().-
]
{4,27}
[
0
-
9
]
)
)
$
/
gm
Open regex in editor
Description
The following regex validates international mobile numbers
Submitted by
anonymous
-
3 years ago