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,960 community submitted regex patterns...
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
-
12 days 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
-
12 days ago
(Last modified 12 days ago)
1
East pointer, reference and const to west.
Python
just as god intended. "T const" -> "const T"
Submitted by
SpaghettDev
-
7 days ago
(Last modified 6 days ago)
1
Validate python version
PCRE2 (PHP >=7.3)
Validate accepted patterns from PEP 440
Submitted by
anonymous
-
21 hours ago
1
Captures entire log line that meet the criteria
Python
If you need to grab an entire log line based on criteria (error,warning,notice,info,debug), use this Regexp and change the parameters accordingly.
Submitted by
Neill Lima
-
10 years ago
1
this
Python
stinks
Submitted by
anonymous
-
10 years ago
1
Double dollar delimited centred LaTeX equation
Python
Find all instances of a double dollar delimited centred LaTeX equation, for use with e.g. KaTeX
Submitted by
drewsberry
-
10 years ago
1
nginx log parser
Python
separate nginx log into database table-style fields
Submitted by
wgzhao
-
10 years ago
1
Brazilian phone numbers
Python
no description available
Submitted by
rafaelverger
-
10 years ago
1
url regex
Python
no description available
Submitted by
catwooman
-
10 years ago
1
domain from full url
Python
no description available
Submitted by
anonymous
-
10 years ago
1
PCI Device
Python
no description available
Submitted by
anonymous
-
9 years ago
1
match the first sentence, ignoring enumerations
Python
no description available
Submitted by
Henrik Heimbuerger
-
9 years ago
1
Get path from URL
Python
extract the path from a URL returns one group (if matching) with the path info e.g. http://somedomain.com/some-page/ http://www.domain.com:8080/some-page/ https://www.google.com:8080/some-page/...
Submitted by
luke_aus
-
9 years ago
1
MySQLcase
Python
make sure mysql tables have the correct form
Submitted by
d
-
9 years ago
1
phanindra.vaga.ranama
Python
sdf
Submitted by
asdf
-
9 years ago
1
Timecode
Python
Regex to match standard timecode format.
Submitted by
Travis
-
9 years ago
1
Apache Access Log pattern
Python
Apache Web server log file format following the standard
Submitted by
Basil Tungekar
-
9 years ago
1
Email id
Python
no description available
Submitted by
anonymous
-
9 years ago
1
Email Validator
Python
Email validator from http://haacked.com/archive/2007/08/21/i-knew-how-to-validate-an-email-address-until-i.aspx/
Submitted by
anonymous
-
9 years ago
1
...
237
238
239
240
241
...
248
SO: fail2ban regular to find 403 request in nginx
7
Regular Expression
Python
r"
^
(?:
::f
{4,6}
:
)?
(?P<host>
\S
+
)
.
*
\"
(
GET
|
POST
)
[^
\"
]
+
\"
403
"
mg
Open regex in editor
Description
http://stackoverflow.com/q/25778420/2072035
Submitted by
anonymous
-
10 years ago
(Last modified a year ago)