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...
2
Quiz_13_Match_Alternating_0s_And_1s_In_Any_Order
PCRE2 (PHP >=7.3)
I'm trying to match bit sequences which are alternating between 1 and 0 and never have more than one 1 or 0 in a row. They can be single digits. Try matching this: 0101010, 1010101010 or 1
Submitted by
anonymous
-
2 months ago
2
Quiz_12_Match_Any_Number_Between_0-100
PCRE2 (PHP >=7.3)
Could you help me validate my input and only match positive integers between the range of 0 and 100? There can be several numbers in a string which I would want to retrieve. Try out these example strings: ...
Submitted by
anonymous
-
2 months ago
3
Match quoted strings, ignoring escaped quotes
PCRE (PHP <7.3)
Matches single or double quoted strings, and ignores backslash-escaped quotes within the string.
Submitted by
Maddingue
-
11 years ago
3
SQL select columns
PCRE (PHP <7.3)
no description available
Submitted by
Phan
-
11 years ago
3
Get Nth value (3 times)
PCRE (PHP <7.3)
capture Nth character from string, 3 times
Submitted by
K.
-
11 years ago
3
HTML image tag src
ECMAScript (JavaScript)
Capture src attribute of HTML image tags
Submitted by
Simon Altschuler
-
11 years ago
3
Extract asp label
ECMAScript (JavaScript)
I am trying to extract the asp:label syntax using Regex but I am getting some error can some one help me
Submitted by
anonymous
-
11 years ago
3
mm/dd/yyyy Date
ECMAScript (JavaScript)
no description available
Submitted by
jay johnson
-
11 years ago
3
date time
Python
1/Jul/2013 03:27:12
Submitted by
himel
-
11 years ago
3
Task 2, part 1
PCRE (PHP <7.3)
Finds all source numbers in square brackets
Submitted by
Kovalev Evgeny
-
11 years ago
3
Outside Quotes
ECMAScript (JavaScript)
match any string outside of single or double quotes
Submitted by
anonymous
-
11 years ago
3
po box
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
3
split URL into location-resource-params
PCRE (PHP <7.3)
Extract resource location, name and query parameters from a URL
Submitted by
cebence
-
11 years ago
3
how to match both lines?
Python
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
-
10 years ago
3
Find URLs in markdown where the lines have been wrapped
Python
no description available
Submitted by
anonymous
-
10 years ago
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
1
...
881
882
883
884
885
...
901
Community Library Entry
3
Regular Expression
PCRE (PHP <7.3)
/
^
(?=
.
{2}
(
.
)
)
(?=
.
{5}
(
.
)
)
(?=
.
{7}
(
.
)
)
/
Open regex in editor
Description
capture Nth character from string, 3 times
Submitted by
K.
-
11 years ago