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 2,660 community submitted regex patterns...
1
East pointer, reference and const to west.
PCRE2 (PHP >=7.3)
just as god intended. "T const" -> "const T"
Submitted by
SpaghettDev
-
3 hours ago
1
Validates an IPv4 Address
PCRE2 (PHP >=7.3)
Given a string, the regex would match if it is a valid IPv4 address.
Submitted by
A-Paint-Brush
-
5 days ago
(Last modified 5 days ago)
1
Match Valid C-like String Literal
PCRE2 (PHP >=7.3)
This regex matches a single one-line C-like string literal. The parsing rules are almost exactly the same as C string literals: A string literal can be surrounded by either single or double quotes, but they must match. In a double quoted string, single quotes can optionally not be preceded by a back...
Submitted by
A-Paint-Brush
-
6 days ago
1
Parse C-like Source Line
PCRE2 (PHP >=7.3)
Description This parses a line of C-like source code into the groups `, , , , and `. It should be matched against a line of source code either containing or not containing the line ending. Use Cases ...
Submitted by
A-Paint-Brush
-
6 days ago
(Last modified 6 days ago)
1
Obsidian internal links
PCRE2 (PHP >=7.3)
This should match any valid Obsidian internal links, in either wikilinks or Markdown format. It is designed for use with ICU.
Submitted by
@Calion
-
8 days ago
(Last modified 5 days ago)
1
Get description from metadata GPX file
PCRE2 (PHP >=7.3)
Get description from metadata GPX file
Submitted by
anonymous
-
8 days ago
1
test
PCRE2 (PHP >=7.3)
test
Submitted by
anonymous
-
9 days ago
(Last modified 9 days ago)
1
UrlRegex
PCRE2 (PHP >=7.3)
Test for URL regex
Submitted by
anonymous
-
9 days ago
(Last modified 9 days ago)
1
Common Separated Values
PCRE2 (PHP >=7.3)
Parse common separated value
Submitted by
Iulian Fecioru
-
10 days ago
1
CSV parser (with Quotes) (.NET)
PCRE2 (PHP >=7.3)
parse comma separated values with quotes
Submitted by
Iulian Fecioru
-
10 days ago
1
Strings with spezified Number
PCRE2 (PHP >=7.3)
Will match strings with the desired number. For example 1234 but not 12345 or 41234. Will ignore leading zeros so 01234 for example will match. Important. Replace 1234 in regex with the actual searched for number
Submitted by
anonymous
-
13 days ago
1
Identification and Extraction of Iranian Mobile Phone Numbers Using Regex (Regular Expression)
PCRE2 (PHP >=7.3)
This regex is designed to identify and extract Iranian mobile phone numbers. By using the pattern ^(0098|\+98|98|0|)(9\d{9}$), this pattern allows you to recognize phone numbers in various formats, including international and local prefixes. This tool is particularly useful for programmers and data ...
Submitted by
Mohammad Mahdi Arbabpouri
-
13 days ago
1
find first '-'
PCRE2 (PHP >=7.3)
find first '-' for replace other
Submitted by
anonymous
-
13 days ago
1
Domain Splitter (subdomains, domain, directory, current page)
PCRE2 (PHP >=7.3)
To test multiple domains, put a slash (/) at the end of each domain
Submitted by
tnarh
-
15 days ago
(Last modified 15 days ago)
1
Matching Alphanumeric Strings with Underscores and Dashes
PCRE2 (PHP >=7.3)
techwiki.biz
Submitted by
anonymous
-
18 days ago
1
Matching Variable Names (e.g., JavaScript, Python)
PCRE2 (PHP >=7.3)
tokotips.com
Submitted by
anonymous
-
18 days ago
1
Matching Time in 12-Hour Format
PCRE2 (PHP >=7.3)
thedigitalnest.com
Submitted by
anonymous
-
18 days ago
1
Matching Dates in MM-DD-YYYY Format
PCRE2 (PHP >=7.3)
techwiki.biz
Submitted by
anonymous
-
18 days ago
1
Matching URL Parameters
PCRE2 (PHP >=7.3)
teamangelicvm.com
Submitted by
anonymous
-
18 days ago
1
Matching Strings with No Special Characters
PCRE2 (PHP >=7.3)
planetwise.net
Submitted by
anonymous
-
18 days ago
1
2
3
...
133
Match Ports
1
Regular Expression
PCRE2 (PHP >=7.3)
/
^
(
[^
0
-
9
]
*
\b
(
(
[
1
-
9
]
|
1
[
0
-
9
]
|
22
|
2
[
4
-
9
]
|
[
3
-
9
]
[
0
-
9
]
|
1
[
0
-
2
]
[
0
-
9
]
|
13
[
0
-
6
]
|
1
[
4
-
9
]
[
0
-
9
]
|
[
2
-
9
]
[
0
-
9
]
[
0
-
8
]
|
[
1
-
9
]
[
0
-
9
]
{3}
|
[
1
-
5
]
[
0
-
9
]
{4}
|
6
[
0
-
4
]
[
0
-
9
]
{3}
|
65
[
0
-
4
]
[
0
-
9
]
{2}
|
655
[
0
-
2
]
[
0
-
9
]
|
6553
[
0
-
5
]
)
\b
[^
0
-
9
]
*
)*
$
)
/
mg
Open regex in editor
Description
Match all Ports except 20,21,23,137,1378,139
Submitted by
anonymous
-
5 months ago