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 9,420 community submitted regex patterns...
0
Improved regex101 ID grabber (fixed)
PCRE (PHP <7.3)
no description available
Submitted by
Oleksandr Sochka
-
11 years ago
0
php comment
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
0
Match all parts of the valid JSON
PCRE (PHP <7.3)
Originally written by Pumbaa80, but slightly adjusted: http://stackoverflow.com/questions/4810841/how-can-i-pretty-print-json-using-javascript
Submitted by
Pumbaa80
-
11 years ago
0
background:url
PCRE (PHP <7.3)
no description available
Submitted by
Mitus M.
-
11 years ago
0
background:url
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
0
In a pipe separed list of values check for a concrete one
PCRE (PHP <7.3)
no description available
Submitted by
furbypaloma
-
11 years ago
0
Markdown Inline Link to HTML Anchor
PCRE (PHP <7.3)
Extracts title and link from Markdown inline link to be placed into an HTML anchor tag.
Submitted by
Mike Johnson
-
11 years ago
0
salanki
PCRE (PHP <7.3)
no description available
Submitted by
salanki
-
11 years ago
0
SFTP with username and optional port & password
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
0
Failing regex which works in Perl
PCRE (PHP <7.3)
Goal is match example lines which are not comments.
Submitted by
anonymous
-
11 years ago
0
Any Character Between 6-64 Long
PCRE (PHP <7.3)
Allowing for complex passwords
Submitted by
anonymous
-
11 years ago
0
unicode email sanitising
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
0
MIME To field possible inputs
PCRE (PHP <7.3)
Each line in TEXT represents potential input data. The regex is useless so far as my original using assertions neglected the case where required matches occur between double quotes.
Submitted by
anonymous
-
11 years ago
0
Help creating a Regex Pattern
PCRE (PHP <7.3)
Please help with a regex that will find a pattern like this ✖ or this ∀ or this Π
Submitted by
anonymous
-
11 years ago
0
\$\s?(\d+[\.\s,\dk]+)|(\d+[\.\s,\dk]+)\$
PCRE (PHP <7.3)
Matches a text that has all those prices below. Doesn't take the $ sign. "Im asking $15,500 OBO Im asking 15,400$ Im asking 15400$ Im asking $15400 Im asking 15 400$...
Submitted by
chocksy
-
11 years ago
0
some shit
PCRE (PHP <7.3)
find all js link on page source
Submitted by
hobot
-
11 years ago
0
Leaflet tag ID matcher
PCRE (PHP <7.3)
Regex (to be) used to identify ID of the tag that loaded Leaflet (or Mapbox).
Submitted by
cebence
-
11 years ago
0
easy Email Detection
PCRE (PHP <7.3)
easy Email Detection
Submitted by
Max Mustermann
-
11 years ago
0
City and state validation
PCRE (PHP <7.3)
Validation when city and state are like in format city, state
Submitted by
Adu
-
11 years ago
0
x
PCRE (PHP <7.3)
x
Submitted by
x
-
11 years ago
1
...
10
11
12
13
14
...
471
Community Library Entry
0
Regular Expression
Python
r"
(
```
|
`
)
(
python
)?
\s
*
?
\n
?
(
from
\S
+
)?
import
\S
+
(
\n.
*
?
;
)*
\n
(
(
.
*
return
\S
+
```
)
|
(
`return
\S
+
`
)
)
"
gm
Open regex in editor
Description
A regex that matches comments that adhere to the rules of r/ProgrammerHumor
Submitted by
anonymous
-
a year ago