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 13,980 community submitted regex patterns...
0
ip username
PCRE (PHP <7.3)
no description available
Submitted by
D17
-
8 years ago
0
Arabic letters Regex
Python
Regex for matching only Arabic letters characters
Submitted by
Waleed Abo Bakr Mahmoud
-
8 years ago
0
Ip address Validator
PCRE (PHP <7.3)
Validate IP address and IP address range to. xxx.xxx.xxx.xxx and xxx.xxx.xxx.xxx/xxx
Submitted by
nehatiwari
-
8 years ago
0
parsing distinguishedName attribute in LDAP
PCRE (PHP <7.3)
parsing distinguishedName attribute in LDAP. Requires g modifier
Submitted by
las68
-
8 years ago
0
Special Chars
PCRE (PHP <7.3)
matches any special chars (e.g. !@#$)
Submitted by
DrewBaker
-
8 years ago
0
Phone Number
PCRE (PHP <7.3)
Phone Number validator with country code area code
Submitted by
Kristine Poghosyan
-
8 years ago
0
^[0-9]{10,11}|2[0-9]{3,3}-(0[1-9]|[1][0-2])-(0[1-9]|[1-2][0-9]|3[0-1])
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
INNERTEXT -- from HTML TAGS
PCRE (PHP <7.3)
HTML INNERTEXT()
Submitted by
zigray
-
8 years ago
0
Names
PCRE (PHP <7.3)
For US names
Submitted by
anonymous
-
8 years ago
0
ip
Python
ip-adreese
Submitted by
anonymous
-
8 years ago
0
File path seperator
PCRE (PHP <7.3)
Seperate any file from it's path and trim extention, creating two groups
Submitted by
Edward Aryee
-
8 years ago
0
Xml Parser!
PCRE (PHP <7.3)
Captures TagName, attributes and value in seperate groups. --- Apply same pattern on capture group #3 (using recursion) to parse entire xml! --- Apply regex defined in teststring to capture group #2 to parse all the attributes for the current tag.
Submitted by
veryanonymous
-
8 years ago
0
message postcode
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
8 years ago
0
Oktavian regex [1]
PCRE (PHP <7.3)
trans replace
Submitted by
Oktavian Master
-
8 years ago
0
Regex to match lines having string1 and not having string3
PCRE (PHP <7.3)
no description available
Submitted by
Vivek Shah
-
8 years ago
0
@mention parser
PCRE (PHP <7.3)
Parse @mentions in text
Submitted by
anonymous
-
8 years ago
0
Substring Matching Word, Hyphen, Underscores and Digits
PCRE (PHP <7.3)
Matches customer portion of call detail records found in the fields dcontext, lastdata, and usefield of an Asterisk CDR table. Additional processing required to get fully clean values.
Submitted by
lindstrom
-
8 years ago
0
IP adress or masks
PCRE (PHP <7.3)
Match any IP adress or Subnet masks and split all bytes in capture groups
Submitted by
SkullPand4
-
8 years ago
0
IPv4 addresses that don't match RFC1918
PCRE (PHP <7.3)
Matches publicly available IPv4 addresses (excludes 10., 172.16-32, and 192.168 blocks).
Submitted by
anonymous
-
8 years ago
1
...
40
41
42
43
44
...
699
Ip address Validator
0
Regular Expression
PCRE (PHP <7.3)
/
^
0
*
(
[
1
-
9
]
?
\d
|
1
\d\d
|
2
[
0
-
4
]
\d
|
25
[
0
-
5
]
)
\.
0
*
(
[
1
-
9
]
?
\d
|
1
\d\d
|
2
[
0
-
4
]
\d
|
25
[
0
-
5
]
)
\.
0
*
(
[
1
-
9
]
?
\d
|
1
\d\d
|
2
[
0
-
4
]
\d
|
25
[
0
-
5
]
)
\.
0
*
(
(
[
1
-
9
]
?
\d
|
1
\d\d
|
2
[
0
-
4
]
\d
|
25
[
0
-
5
]
)
|
(
(
[
1
-
9
]
?
\d
|
1
\d\d
|
2
[
0
-
4
]
\d
|
25
[
0
-
5
]
)
(
\/
(
[
1
-
9
]
?
\d
|
1
\d\d
|
2
[
0
-
4
]
\d
|
25
[
0
-
5
]
)
)
)
)
$
/
gm
Open regex in editor
Description
Validate IP address and IP address range to. xxx.xxx.xxx.xxx and xxx.xxx.xxx.xxx/xxx
Submitted by
nehatiwari
-
8 years ago