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...
1
Recursive Search
PCRE (PHP <7.3)
Proof of concept to omit restriction with '' http://stackoverflow.com/questions/15584634/about-php-regexp-for-recursive-pattern?answertab=oldest#tab-top http://stackoverflow.com/questions/25408579/regex-to-match-blocks-inside-blocks
Submitted by
themroc
-
10 years ago
1
Recursive search
PCRE (PHP <7.3)
Proof of concept to omit restriction with '' http://stackoverflow.com/questions/15584634/about-php-regexp-for-recursive-pattern?answertab=oldest#tab-top http://stackoverflow.com/questions/25408579/regex-to-match-blocks-inside-blocks
Submitted by
themroc
-
10 years ago
1
Recursive search
PCRE (PHP <7.3)
Proof of concept to omit restriction with '' http://stackoverflow.com/questions/15584634/about-php-regexp-for-recursive-pattern?answertab=oldest#tab-top http://stackoverflow.com/questions/25408579/regex-to-match-blocks-inside-blocks
Submitted by
themroc
-
10 years ago
2
Match number in html
ECMAScript (JavaScript)
Prevent matching in markup attributes
Submitted by
Mathieu Civel
-
10 years ago
2
SFTP or FTP url
PCRE (PHP <7.3)
Parse an SFTP or FTP url and brak it into named capture groups.
Submitted by
Cullen Johnson
-
10 years ago
13
regex101.com id grabber
PCRE (PHP <7.3)
grabs the ID for the regex101.com permalink to code
Submitted by
chris mccoy
-
10 years ago
1
Matching url
Python
no description available
Submitted by
anonymous
-
10 years ago
1
Demo
ECMAScript (JavaScript)
no description available
Submitted by
Tensibai
-
10 years ago
1
Escape non-Ascii Character
PCRE (PHP <7.3)
Replace non-ascii characters with empty spaces.
Submitted by
Huchister
-
10 years ago
1
Matching Multiline Strings in Large Text File
PCRE (PHP <7.3)
Need Help, Matching Multiline Strings in Large Text File
Submitted by
jholderman
-
10 years ago
0
too greedy +
PCRE (PHP <7.3)
I would like to make that pattern match word char followed by plus folowed by few word chars and followed by another word char and plus. Both word chars followed by plus have to be optional. The problem is that + in middle part takes as much chars as it can and last part never matches (for example s...
Submitted by
Nel
-
10 years ago
-1
Find html tag opening for tag with specific class.
PCRE (PHP <7.3)
I needed a regex to find the opening location of an html tag with a specific class. It is ugly, and it relies on many false assumtions, yet be honest, this will work in most cases. Also checks if the tag is in a line that is commented out. Again, we wont know if it is commented out if it is done on ...
Submitted by
Stack overflow Superspy
-
10 years ago
1
foobar
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
6
json
PCRE (PHP <7.3)
{1:aa,2:bb,3:"aa:bb"}
Submitted by
suat & umut
-
10 years ago
1
json
PCRE (PHP <7.3)
no description available
Submitted by
suat & umut
-
10 years ago
1
auie
Python
auie
Submitted by
auie
-
10 years ago
-2
Regex for 1 to 100 with or without decimal values
ECMAScript (JavaScript)
no description available
Submitted by
Ved
-
10 years ago
1
Match Ice Faces Empty RTF
PCRE (PHP <7.3)
Will match any empty or containing whitespace only Ice Faces Rich Text Input element.
Submitted by
Sam Blumire
-
10 years ago
-2
Basic grammar for regex matching of simplistic Makefiles
Python
This expression should both normal and wildcard targets and rules wrapped in simple sub-shell or varriable substitution enclosures.
Submitted by
Robert Butler <me@r-butler.net>
-
10 years ago
0
Solved:Retrieve Value from JSON /(?<="signature":")[^"]+
PCRE (PHP <7.3)
I posted in Stackoverflow asking for help in regexp to retrieve value from a JSON response: {"payload":"eyJjaGFsbGVuZ2UiOiIwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAiLCJtaW5pbXVtTW9iaWxlVmVyc2lvbiI6MSwibm9uY2UiOiJPQ1dwdjkzSzRMSCtQM0...
Submitted by
Pratap Venkatesan
-
10 years ago
1
...
882
883
884
885
886
...
902
Community Library Entry
0
Regular Expression
PCRE (PHP <7.3)
/
\+
(
[
1
-
9
]
[
0
-
9
]
{0,2}
)
(
-
[
1
-
9
]
[
0
-
9
]
{0,4}
)?
(
-
[
1
-
9
]
[
0
-
9
]
{0,13}
)
(
-
[
0
-
9
]
{0,4}
)?
/
Open regex in editor
Description
no description available
Submitted by
anonymous
-
10 years ago