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
5 upvotes, 2 downvotes (71% like it) (You must be signed in to vote)
pcre
Get Nth value (3 times)
capture Nth character from string, 3 times
Submitted by
K.
-
10 years ago
3
8 upvotes, 5 downvotes (62% like it) (You must be signed in to vote)
python
date time
1/Jul/2013 03:27:12
Submitted by
himel
-
9 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
Task 2, part 1
Finds all source numbers in square brackets
Submitted by
Kovalev Evgeny
-
9 years ago
3
5 upvotes, 2 downvotes (71% like it) (You must be signed in to vote)
pcre
split URL into location-resource-params
Extract resource location, name and query parameters from a URL
Submitted by
cebence
-
9 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
how to match both lines?
f_name may contain spaces, numbers, characters,... so I would go for a but then I couldn't use [...]? anymore to match the second line?
Submitted by
anonymous
-
9 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
python
Find URLs in markdown where the lines have been wrapped
no description available
Submitted by
anonymous
-
9 years ago
3
4 upvotes, 1 downvotes (80% like it) (You must be signed in to vote)
pcre
xferlog parser (proftpd, ftpd, vsftpd, etc..)
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
-
9 years ago
3
4 upvotes, 1 downvotes (80% like it) (You must be signed in to vote)
pcre
UUID
no description available
Submitted by
Jason
-
9 years ago
3
4 upvotes, 1 downvotes (80% like it) (You must be signed in to vote)
pcre
Finds dates lacking period before month (Norwegian)
no description available
Submitted by
EB
-
9 years ago
3
3 upvotes, 0 downvotes (100% like it) (You must be signed in to vote)
pcre
semver
Semantic Versioning regex pattern according to Tom Preston-Werner http://semver.org/ https://github.com/mojombo/semver/blob/master/semver.md First version of this regex follows semver 2.0.0....
Submitted by
@gvlx <Gerardo Lisboa>
-
9 years ago
3
7 upvotes, 4 downvotes (64% like it) (You must be signed in to vote)
pcre
php input:date yyyy-mm-dd
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
-
9 years ago
3
6 upvotes, 3 downvotes (67% like it) (You must be signed in to vote)
pcre
Fetch data between curly braces with plain text
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
-
9 years ago
3
8 upvotes, 5 downvotes (62% like it) (You must be signed in to vote)
pcre
everything that doesn't match .gitignore at the end
must match: selection/nl/example.xml selection/example.xml selection/blabla.txt selection/es/ ...
Submitted by
anonymous
-
9 years ago
3
10 upvotes, 7 downvotes (59% like it) (You must be signed in to vote)
pcre
UK Postcode Checker
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
-
9 years ago
3
7 upvotes, 4 downvotes (64% like it) (You must be signed in to vote)
pcre
youtube id match
youtube id 17 matches
Submitted by
Wiliam Castilhos, Ramon Barros
-
9 years ago
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
1
...
665
666
667
668
669
670
671
...
679
ddasgfsfds
Vote
-52
8 upvotes, 60 downvotes (12% like it) (You must be signed in to vote)
Regular Expression
pcre
/
(
a
?
b
.
[
c|d
]
e
*
)+
/
Open regex in editor
Description
Loading markdown...
Submitted by
fs
- 10 years ago