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 14,980 community submitted regex patterns...
-2
last, first middle name parser
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 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>
-
9 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
-
9 years ago
-2
Detect DNS Zones with Authoritative Nameservers
PCRE (PHP <7.3)
This can be used to find all zone files that contain authoritative nameservers - e.g. perl -ne 'print if /^([\w.]+\.)\s+.+\sNS\s.+\1/' /var/named/*.db | awk '{print $1}' | sort | uniq
Submitted by
Santrix
-
9 years ago
-1
UK Postcode Validation
ECMAScript (JavaScript)
Matches all valid, current UK Postcodes, including Girobank and non-geographic postcodes, irrespective of whether they contain a space. It does not include overseas territories. Adapted from the BS7666 postcode rules at http://www.cabinetoffice.gov.uk/govtalk/schemasstandards/e-gif/datastandards/add...
Submitted by
Ti Marner
-
9 years ago
0
eee
PCRE (PHP <7.3)
eee
Submitted by
eee
-
9 years ago
0
test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
match only an #endif where no wordcharacter is following(multiline)
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
KZ phone regexp
PCRE (PHP <7.3)
Regexp for kz website mask "+7(999) 999-99-99"
Submitted by
Iden
-
9 years ago
1
regex for phone numbers in Israel
PCRE (PHP <7.3)
regex for phone numbers in Israel
Submitted by
anonymous
-
9 years ago
0
fsd
PCRE (PHP <7.3)
fsdfsd
Submitted by
anonymous
-
9 years ago
1
Get the extension of file
ECMAScript (JavaScript)
Get the extension of file
Submitted by
Taffarel Xavier
-
9 years ago
1
Get extension of an file
ECMAScript (JavaScript)
Get extension of an file.
Submitted by
Taffarel Xavier
-
9 years ago
-2
Username
ECMAScript (JavaScript)
^[_a-zA-Z0-9]+$ how to make regex username with underscore. i'm using c# but this regex isn't working.
Submitted by
anonymous
-
9 years ago
2
openweathermap rain and snow
PCRE (PHP <7.3)
Extract from {"city":{"id":1217734,"name":"Boysun","findname":"BOYSUN","country":"UZ","coord":{"lon":67.198608,"lat":38.206108},"zoom":8,"langs":[{"link":"http:\/\/en.wikipedia.org\/wiki\/Boysun"},{"ru":"Бойсун"}]},"time":1394871628,"main":{"temp":274.74,"temp_min":274.74,"temp_max":274.74,"pressure...
Submitted by
amplatfus
-
9 years ago
1
someone knows he answer?
PCRE (PHP <7.3)
are both strings matching, I wnat only the second one to match
Submitted by
anonymous
-
9 years ago
0
select html paragraph tags
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Ultimate url regex
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
afsd
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
...
705
706
707
708
709
...
749
GS1-128 and RegEx
0
Regular Expression
PCRE2 (PHP >=7.3)
/
(
\(
\d
{1,3}
[
0
-
9,a
-
z,A
-
Z
]
{1}
?
\)
(?<upc>
[
\d
,a
-
z,A
-
Z
]
{1,70}
)
)
(
\(
\d
{1,3}
[
0
-
9,a
-
z,A
-
Z
]
{1}
?
\)
(?<date>
[
\d
,a
-
z,A
-
Z
]
{1,70}
)
)
(
\(
\d
{1,3}
[
0
-
9,a
-
z,A
-
Z
]
{1}
?
\)
(?<batch>
[
\d
,a
-
z,A
-
Z
]
{1,70}
)
)
/
gm
Open regex in editor
Description
Parse the 3 groups of a GS1-128 Barcode
Submitted by
Mike D
-
a year ago