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,040 community submitted regex patterns...
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
3
Request mask idea
ECMAScript (JavaScript)
Do you like apis and nodejs as I do?, then this must be for you, have you noticed that all the famous apis have a common functionality? the ability to request partial responses with masks, so if you have a friend list you may want to return only a few fields you know just in case. You will end up re...
Submitted by
Marco Villarreal<erick.slayer.m.v@gmail.com>
-
10 years ago
3
Test a string against CamelCase
ECMAScript (JavaScript)
See if a string is in CamelCase format
Submitted by
Tonny Xu
-
10 years ago
3
PL Phone number
PCRE (PHP <7.3)
PL Phone number
Submitted by
Dawid
-
10 years ago
3
@media query tokenizer
ECMAScript (JavaScript)
Separates media query into rule and content
Submitted by
Stephan --> CTS_AE
-
10 years ago
3
white space before punctuations, outside script and code tags
PCRE (PHP <7.3)
white space before punctuations, outside script and code tags
Submitted by
ced
-
10 years ago
3
phone
Python
matches: + example: +52 33 3884 7720 +1 770 343 5788
Submitted by
miqui
-
10 years ago
3
split sentence regex
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
3
images url match in text
PCRE (PHP <7.3)
no description available
Submitted by
Redfern.89
-
10 years ago
3
prices in nis
Python
no description available
Submitted by
molaxx
-
10 years ago
3
Div content
PCRE (PHP <7.3)
no description available
Submitted by
mohammadsaleh
-
10 years ago
3
javascript regex ftp directory list
ECMAScript (JavaScript)
javascript regex ftp directory list
Submitted by
anonymous
-
10 years ago
1
...
883
884
885
886
887
...
902
Community Library Entry
1
Regular Expression
PCRE2 (PHP >=7.3)
/
array
\s
*
\(
\s
*
(
[^
)
]
*
)
\s
*
\)
/
gm
Open regex in editor
Description
In PHP scripts replace array() with short syntax []
Submitted by
papi Jo
-
7 months ago