Regular
Expressions
101
Please wait while the app is loading...
Please enable JavaScript to use this web application.
Regular
Expressions
101
@regex101
Donate
Sponsor
Contact
Bug Reports & Feedback
Wiki
What's new?
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Regex Library
Regex Library
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Order By
Most Recent
Most Points
Fewest Points
Filter by Flavor
PCRE2
PCRE
ECMAScript
Python
Golang
Java
.NET
Sponsors
All your environment variables, in one place
Library entries
Search library
3
7 upvotes, 4 downvotes (64% like it) (You must be signed in to vote)
pcre
ISO 8601 date
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
-
9 years ago
3
4 upvotes, 1 downvotes (80% like it) (You must be signed in to vote)
pcre
Alternative Capture Country Codes
no description available
Submitted by
Branden
-
8 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
URL with matching categories
Finds the protocol, subdomain, ((domain, extension)/ipaddress), port, filepath (split in path and filename), the route and the query string.
Submitted by
fps
-
8 years ago
3
7 upvotes, 4 downvotes (64% like it) (You must be signed in to vote)
python
Twitch URL Regex
Can grab all kinds of valid twitch URLs.
Submitted by
Mio
-
8 years ago
3
6 upvotes, 3 downvotes (67% like it) (You must be signed in to vote)
pcre
^.*(\/Summary\/).*(chelaxe\.ru).*$
no description available
Submitted by
anonymous
-
8 years ago
3
4 upvotes, 1 downvotes (80% like it) (You must be signed in to vote)
pcre
How do I write a Regex to inspect Cisco Interfaces
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
-
8 years ago
3
5 upvotes, 2 downvotes (71% like it) (You must be signed in to vote)
pcre
Capture only top-level (root) domain in URL
no description available
Submitted by
guyfawkes
-
8 years ago
3
7 upvotes, 4 downvotes (64% like it) (You must be signed in to vote)
pcre
white space before punctuations, outside script and code tags
white space before punctuations, outside script and code tags
Submitted by
ced
-
8 years ago
3
33 upvotes, 30 downvotes (52% like it) (You must be signed in to vote)
python
phone
matches: + example: +52 33 3884 7720 +1 770 343 5788
Submitted by
miqui
-
8 years ago
3
15 upvotes, 12 downvotes (56% like it) (You must be signed in to vote)
pcre
split sentence regex
no description available
Submitted by
anonymous
-
8 years ago
3
4 upvotes, 1 downvotes (80% like it) (You must be signed in to vote)
pcre
images url match in text
no description available
Submitted by
Redfern.89
-
8 years ago
3
4 upvotes, 1 downvotes (80% like it) (You must be signed in to vote)
python
prices in nis
no description available
Submitted by
molaxx
-
8 years ago
3
4 upvotes, 1 downvotes (80% like it) (You must be signed in to vote)
pcre
Div content
no description available
Submitted by
mohammadsaleh
-
8 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Cisco ASA
no description available
Submitted by
anonymous
-
8 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
@font-face stuff
bits and pieces of reusable replacements in CSS @font-face rules
Submitted by
mroncetwice
-
8 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Roman numeral detector
Detects valid Roman numerals (up to 3999), and splits into 4 capture groups: thousands, hundreds, tens, and units.
Submitted by
Terence Linnell
-
8 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
sql: insert into
insert into (a,b,c) values (1,2.3,"test");
Submitted by
suat erenler - sua.gen.tr
-
8 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
hj
hj
Submitted by
hj
-
8 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
currency
no description available
Submitted by
anonymous
-
8 years ago
3
6 upvotes, 3 downvotes (67% like it) (You must be signed in to vote)
pcre
Invalid Unicode characters in XML
This pattern matches all the Unicode characters that are not allowed in an XML document. It's based on the Wikipedia article "Valid characters in XML".
Submitted by
Aaron Wells
-
8 years ago
1
...
655
656
657
658
659
660
661
...
668
need help
Vote
-10
6 upvotes, 16 downvotes (27% like it) (You must be signed in to vote)
Regular Expression
pcre
/
id:
^
[
0
-
9
]
{1-9}
$
/
Open regex in editor
Description
Loading markdown...
Submitted by
sachin
- 9 years ago