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,500 community submitted regex patterns...
0
Command line with escape
PCRE (PHP <7.3)
splits into command arguments: spaces split quotes keep spaced texts together \" escapes the quote
Submitted by
Skycoder42
-
9 years ago
0
positive/negative float/integer
PCRE (PHP <7.3)
matches all positive or negative float or integers
Submitted by
Codeloper
-
9 years ago
1
Wikis or Wikipedia
PCRE (PHP <7.3)
Get Wikis or Wikipedia urls. I use it for Stylish extension in Firefox
Submitted by
mlopezcoria
-
9 years ago
1
Catch Directives
PCRE (PHP <7.3)
Catch directive and anything inside {} @widget('x') { test }
Submitted by
John Turingan
-
9 years ago
1
Java
Python
no description available
Submitted by
anonymous
-
9 years ago
1
JAva
Python
no description available
Submitted by
anonymous
-
9 years ago
1
Regx3
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
0
Regx5
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
HL7
PCRE (PHP <7.3)
no description available
Submitted by
Brent
-
9 years ago
1
Validation
PCRE (PHP <7.3)
no description available
Submitted by
Robin Venneman
-
9 years ago
1
rtxmap
Python
no description available
Submitted by
MBE
-
9 years ago
1
Work Samples
Python
no description available
Submitted by
MH
-
9 years ago
1
parse nginx log
PCRE (PHP <7.3)
parse nginx log lines into fields
Submitted by
ViKing
-
9 years ago
0
Nigerian Phone numbers
PCRE (PHP <7.3)
Regex for validating Nigerian phone numbers using all mobile prefixes in the country
Submitted by
Jubril Edu
-
9 years ago
1
SQL LIMIT REMOVE
PCRE (PHP <7.3)
SQL LIMIT REMOVE
Submitted by
Lucas Pinheiro
-
9 years ago
1
test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Chemstation MS Parsing
PCRE (PHP <7.3)
Parsing of a file created by a Chemstation Instrument
Submitted by
DJ
-
9 years ago
1
find digits in float for formatting delimiter position
PCRE (PHP <7.3)
1234567 -> mathces 1 and 4. 1234567.999 -> matches 1 and 4. so you can format it to 1,234,567.999 easily JavaScript:...
Submitted by
Marvin Follmann
-
9 years ago
1
/slug/id/
PCRE (PHP <7.3)
Match /slug/id or /slug/id/ where id is only numbers and slug only letters and -
Submitted by
Renan Cavalieri
-
9 years ago
1
Any Input Searches
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
...
119
120
121
122
123
...
575
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