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 11,320 community submitted regex patterns...
0
Reads C-like comments
Python
Reads C comments as this "/* Do test / and removes / */ parts and leaves only comment part
Submitted by
Shuhrat Rahimov
-
9 years ago
1
arxiv
Python
no description available
Submitted by
anonymous
-
9 years ago
0
NANP Phone Number Checker
PCRE (PHP <7.3)
Checks whether a North American Numbering Plan (NANP) phone number is valid. (Matching numbers are not necessarily real.) However, it registers 299-911-9999 as OK, even though it's not valid.
Submitted by
anonymous
-
9 years ago
1
Valid .bit domain
Python
no description available
Submitted by
anonymous
-
9 years ago
-2
Simple Username Pattern
PCRE (PHP <7.3)
a simple username pattern
Submitted by
Saeed Tabrizi
-
9 years ago
1
[!-Z]
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
/(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2}) (\w+)/g
PCRE (PHP <7.3)
Gets year month date hour minute seconds and time zone value yyyy-mm-dd hh:mm:ss UTC $1 $2 $3 $4 $5 $6 $7
Submitted by
hiren raj
-
9 years ago
-2
DOTNET
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
find any URI/URL with no trailing slash v2
PCRE (PHP <7.3)
updated
Submitted by
-oneglory
-
9 years ago
1
SP Lookup REgEx
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Match hrefs of a tags
PCRE (PHP <7.3)
no description available
Submitted by
Panagiotis Rompolas
-
9 years ago
-2
Get begining of url (subdomain)
PCRE (PHP <7.3)
In between 2 delimiters
Submitted by
anonymous
-
9 years ago
1
add syntax
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Just a Test
PCRE (PHP <7.3)
Just a Test with the regex101 Tool
Submitted by
Manuel
-
9 years ago
1
rolex
Python
no description available
Submitted by
anonymous
-
9 years ago
1
IRC protocol prefix parsing
PCRE (PHP <7.3)
select each argument and retrieve data
Submitted by
kerosene2000
-
9 years ago
1
1
PCRE (PHP <7.3)
no description available
Submitted by
Plokhova A.Y.
-
9 years ago
1
1
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
1
PCRE (PHP <7.3)
no description available
Submitted by
d
-
9 years ago
1
2
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
...
105
106
107
108
109
...
566
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