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,440 community submitted regex patterns...
1
background-image URL
PCRE (PHP <7.3)
regex to fetch the URL of the background-image CSS-Propertie
Submitted by
Mutator
-
10 years ago
-2
Date YYYYMMDD
PCRE (PHP <7.3)
Date in format YYYYMMDD Year between [1900-2099] No leap year check but month 02 is limited to 29 days.
Submitted by
Ahmed Z
-
10 years ago
0
Find all list items
PCRE (PHP <7.3)
I need to find the fastest expression to get all the list items inside a an put the items inside an array. input: ...
Submitted by
Sonny
-
10 years ago
1
Reading only the "=" symbol
PCRE (PHP <7.3)
The pattern should match only the "=" symbols with in the html content other than the HTML attributes. i.e if we have Sample head This is a test a=b=c=d or a = b = c The pattern should match only "=" outside the html tags
Submitted by
Dilip
-
10 years ago
1
question regarding "split" like regex group
PCRE (PHP <7.3)
dear all, i am a regex beginner, so please be gentle :) we have lines of log contents delimited by a pipe char. is it possible to fetch the content between the 5th and the 6th delimiter, ignoring the values in between? example log line:...
Submitted by
regexBeginner
-
10 years ago
1
regex int
PCRE (PHP <7.3)
var pattern='/^0-9{0,6}$/'; /* int match 9 digit */ /** ^ starting point 1st [0-9] number should be start between 0 to 9 2nd [0-9] number should be end between 0 to 9 3nd {0-6} number length should be exact 6 digit...
Submitted by
sudhir k gupta
-
10 years ago
0
split on dollar sign
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
include case
PCRE (PHP <7.3)
How to include the matched cases in the result?
Submitted by
anonymous
-
10 years ago
1
test
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
Usability request
PCRE (PHP <7.3)
implement vi keys PLEASE
Submitted by
maurice.sprauge@gmail.com
-
10 years ago
1
stripping annotations from pre-NewsML transcripts
PCRE (PHP <7.3)
no description available
Submitted by
Brian D'Astous
-
10 years ago
0
Replace one or more 'br' tags with a single space.
PCRE (PHP <7.3)
no description available
Submitted by
James Furey
-
10 years ago
0
URL matching
PCRE (PHP <7.3)
Complete url matching with storage of various parameters
Submitted by
hjpotter92
-
10 years ago
0
Removes comments from css files
PCRE (PHP <7.3)
This regexp removes comments from css (text/css) files (multiline)
Submitted by
Ray (alrays@yandex.ru)
-
10 years ago
1
youtube links in wp/embed context
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
google result li item
PCRE (PHP <7.3)
Trying to output http://www.fs.usda.gov/malheur or thereabouts
Submitted by
ape
-
10 years ago
4
Element's Attribute Value in XML (simple)
PCRE (PHP <7.3)
Simple regular expression for extracting attribute value of the element in XML-string. Attribute value should be in quotes.
Submitted by
Nikita Danilov
-
10 years ago
1
đâs
PCRE (PHP <7.3)
ddấdadasdasd
Submitted by
anonymous
-
10 years ago
2
Minecraft Entity Target Splitter
PCRE (PHP <7.3)
Regex to match part of minecraft command entity targets
Submitted by
aziis98
-
10 years ago
1
SO: http://stackoverflow.com/questions/24371462/writing-regex-according-to-char/24371542#24371542
PCRE (PHP <7.3)
no description available
Submitted by
Eder Quiñones
-
10 years ago
1
...
459
460
461
462
463
...
472
Community Library Entry
40
Regular Expression
PCRE (PHP <7.3)
/
(
(
(
[
A
-
Za
-
z
]
{3,9}
:
(?:
\/\/
)?
)
(?:
[
-;:&=
\+\$
,
\w
]
+
@
)?
[
A
-
Za
-
z0
-
9.-
]
+
|
(?:
www
.
|
[
-;:&=
\+\$
,
\w
]
+
@
)
[
A
-
Za
-
z0
-
9.-
]
+
)
(
(?:
\/
[
\+
~%
\/
.
\w
-_
]
*
)?
\?
?
(?:
[
-
\+
=&;%@.
\w
_
]
*
)
#
?
(?:
[
.
\!\/\\
w
]
*
)
)?
)
/
ig
Open regex in editor
Description
A quite neat regular expression for URLs, e-mails..., I found on Matthew O'Riordan's blog.
Submitted by
Matthew O'Riordan
-
12 years ago