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 9,340 community submitted regex patterns...
0
Closes properly self-closing tags in HTML
PCRE (PHP <7.3)
In an HTML will replace all auto-closed tags (/>) with a proper tag closing. It works even if the tag has a closing sign (>) inside an attribute.
Submitted by
nabab
-
a year ago
-2
PHP Serialization String Validator
PCRE (PHP <7.3)
PHP serialize / unserialize __sleep __wakeup __serialize __unserialize
Submitted by
Abdullah Pazarbasi
-
a year ago
0
Get anything between parentheses
PCRE (PHP <7.3)
Use to get any character, digit or space between parentheses
Submitted by
Vini Pereira
-
a year ago
-1
alluse
PCRE (PHP <7.3)
/^(?P0|[1-9]\d)\.(?P0|[1-9]\d)\.(?P0|[1-9]\d)(?:-(?P(?:0|[1-9]\d|\da-zA-Z-)(?:\.(?:0|[1-9]\d|\da-zA-Z-))))?(?:\+(?P[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/gm
Submitted by
alluse
-
a year ago
0
Get ip address (only ipv4) Validator
.NET 7.0 (C#)
Get ip address (only ipv4) Validator
Submitted by
Mr.Tang
-
a year ago
(Last modified a year ago)
0
Get ip address (only ipv6) Validator
.NET 7.0 (C#)
Get ip address (only ipv6) Validator
Submitted by
Mr.Tang
-
a year ago
(Last modified a year ago)
2
Get ip address (only ipv4) Validator
.NET 7.0 (C#)
Get ip address (only ipv4) Validator
Submitted by
Mr.Tang
-
a year ago
(Last modified a year ago)
0
Function arguments regex
PCRE (PHP <7.3)
A simple regex to match individual arguments of a function.
Submitted by
anonymous
-
a year ago
-2
Parsing result of SQL Server version (SELECT @@VERSION)
.NET 7.0 (C#)
Parses MS SQL Server version returned from executing SELECT @@version
Submitted by
M Rivas
-
a year ago
2
Mime type parser
.NET 7.0 (C#)
A "simple" regex to parse mime types. Handles all commonly occurring parts of a mime type string such as: Type Subtype Subtype's with an extra extension (e.g. svg+xml) (Optional input) Multiple parameters (Optional input)...
Submitted by
Vespion
-
a year ago
(Last modified a year ago)
0
semantic tags
PCRE (PHP <7.3)
semantic tags
Submitted by
anonymous
-
a year ago
0
Isolate some string (any caracthers) in between isolators, none or many
PCRE (PHP <7.3)
This expression isolates a string or many strings of any caracthers that are preceded and are followed by a pair of colons in a long text string. Practical for tooltip insertion. Find a word in the string, search in the database, construct the tooltip and insert within the returned string. Use wi...
Submitted by
Marc De Gagné
-
a year ago
0
Regex Colon Code For Emoji
PCRE (PHP <7.3)
Groups the ID, and finds the whole colon code
Submitted by
ZackiBoiz
-
a year ago
(Last modified a year ago)
1
URL Validator (HTTP and HTTPS)
PCRE (PHP <7.3)
Validate one URL HTTP and HTTPS
Submitted by
Joaquim
-
a year ago
0
Mysite
PCRE (PHP <7.3)
Hello
Submitted by
anonymous
-
a year ago
0
Parse getopt options from a Bash script
PCRE (PHP <7.3)
This will parse the parameters/arguments that a Bash script when it uses getopt(s). Groups: name,short,long,while Example cases: ...
Submitted by
Spyingwind
-
a year ago
0
MBI Regex
PCRE (PHP <7.3)
validates against the MBI format published by CDC
Submitted by
i410hlr
-
a year ago
0
Parse arguments
PCRE (PHP <7.3)
Parse arguments
Submitted by
Ofir Yariv
-
a year ago
2
Phone number for all countries
.NET 7.0 (C#)
Phone number for all countries. Valid symbols: ( ), -, whitespace
Submitted by
Alexander Smirnov
-
a year ago
0
15.02.2022 15:00:00
.NET 7.0 (C#)
15.02.2022 15:00:00
Submitted by
anonymous
-
a year ago
1
2
3
4
5
6
...
467
IPv4 w/ w/o port validation and localhost string supported
0
Regular Expression
PCRE (PHP <7.3)
/
^
(
(
(
25
[
0
-
5
]
|
2
[
0
-
4
]
[
0
-
9
]
|
1
[
0
-
9
]
[
0
-
9
]
|
[
0
-
9
]
{1,2}
)
(
\\
.
(
25
[
0
-
5
]
|
2
[
0
-
4
]
[
0
-
9
]
|
1
[
0
-
9
]
[
0
-
9
]
|
[
0
-
9
]
{1,2}
)
){3}
)
|
(
localhost
)
)
(
:
(
(
6553
[
0
-
5
]
)
|
(
655
[
0
-
2
]
[
0
-
9
]
)
|
(
65
[
0
-
4
]
[
0
-
9
]
{2}
)
|
(
6
[
0
-
4
]
[
0
-
9
]
{3}
)
|
(
[
1
-
5
]
[
0
-
9
]
{4}
)
|
(
[
0
-
5
]
{1,5}
)
|
(
[
0
-
9
]
{1,4}
)
)
)?
$
|
^$
/
gm
Open regex in editor
Description
IPv4 w/ w/o port validation and localhost string supported
Submitted by
anonymous
-
2 years ago