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
Most upvotes
Most downvotes
Highest Score
Lowest Score
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 18,020 community submitted regex patterns...
3
xferlog parser (proftpd, ftpd, vsftpd, etc..)
PCRE (PHP <7.3)
This pulls out all the fields from a standard xferlog format log. Format specified here http://www.castaglia.org/proftpd/doc/xferlog.html
Submitted by
Robin Kearney
-
10 years ago
3
UUID
PCRE (PHP <7.3)
no description available
Submitted by
Jason
-
10 years ago
3
Finds dates lacking period before month (Norwegian)
PCRE (PHP <7.3)
no description available
Submitted by
EB
-
10 years ago
3
Get URL parameters
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
3
php input:date yyyy-mm-dd
PCRE (PHP <7.3)
improved "Ahmed Z" regexp. PHP date format (and input[type=text] format date too): YYYY-MM-DD. Year between [1900-2099]. No leap year check. Month 02 is limited to 29 days.
Submitted by
Oropesa
-
10 years ago
3
Fetch data between curly braces with plain text
PCRE (PHP <7.3)
This regex fetch only the data between content in curly braces (first occurrence, use preg_match_all in php, for all occurrences). This is useful for bad JSON files with wrong format or text between.
Submitted by
shakaran87
-
10 years ago
3
everything that doesn't match .gitignore at the end
PCRE (PHP <7.3)
must match: selection/nl/example.xml selection/example.xml selection/blabla.txt selection/es/ ...
Submitted by
anonymous
-
10 years ago
3
UK Postcode Checker
PCRE (PHP <7.3)
This is an improvement of the very good tH9mQ1/1. It did not pickup on the first two postcodes found here: //http://en.wikipedia.org/wiki/Postcodes_in_the_United_Kingdom
Submitted by
Flexander
-
10 years ago
3
javascript template replacement
ECMAScript (JavaScript)
no description available
Submitted by
akamaozu
-
10 years ago
3
youtube id match
PCRE (PHP <7.3)
youtube id 17 matches
Submitted by
Wiliam Castilhos, Ramon Barros
-
10 years ago
3
ISO 8601 date
PCRE (PHP <7.3)
Validates a date with ISO 8601 format. Source: http://www.pelagodesign.com/blog/2009/05/20/iso-8601-date-validation-that-doesnt-suck/
Submitted by
anonymous
-
10 years ago
3
TimezoneOffset
ECMAScript (JavaScript)
parses timezones in the format -08:00 or -8:0
Submitted by
Neha Kadam
-
10 years ago
3
TEST
ECMAScript (JavaScript)
negation
Submitted by
anonymous
-
10 years ago
3
Simple math regex
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
3
Alternative Capture Country Codes
PCRE (PHP <7.3)
no description available
Submitted by
Branden
-
10 years ago
3
URL with matching categories
PCRE (PHP <7.3)
Finds the protocol, subdomain, ((domain, extension)/ipaddress), port, filepath (split in path and filename), the route and the query string.
Submitted by
fps
-
10 years ago
3
Smart Target Blank
ECMAScript (JavaScript)
Allow you to check if the JavaScript location.pathname is a link required adding a target="_blank".
Submitted by
Bruno Lesieur
-
10 years ago
3
Twitch URL Regex
Python
Can grab all kinds of valid twitch URLs.
Submitted by
Mio
-
10 years ago
3
^.*(\/Summary\/).*(chelaxe\.ru).*$
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
3
How do I write a Regex to inspect Cisco Interfaces
PCRE (PHP <7.3)
I am asking for help in writing a regular expression to shorten this expression. I need the string below to search every interface within the range of 1 -24 to validate the configuration. If one interface does not have the required configuration then the expression fails. interface GigabitEtherne...
Submitted by
Pirates
-
10 years ago
1
...
881
882
883
884
885
...
901
Community Library Entry
2
Regular Expression
.NET 7.0 (C#)
@"
(?:
[
/-
]
+
(?<key>
\S
+
?
)
)
|
(?:
""
[
/-
]
+
(?<key>
.
+
?
)
""
)
|
(?:
'
[
/-
]
+
(?<key>
.
+
?
)
'
)
|
(?:
""
(?<value>
.
+
?
)
""
)
|
(?:
'
(?<value>
.
+
?
)
'
)
|
(?<value>
\S
+
)
"
gm
Open regex in editor
Description
Supports parameters such as keys and values, also parameters enclosed in quotes.
Submitted by
Pavel Bashkardin
-
3 months ago
(Last modified 3 months ago)