Please enable JavaScript to use this web application.
Regular
Expressions
101
Social
Social
Join the Discord community!
Follow me on twitter!
Send me an email
Donate
Donate
Donate through Paypal
Become a Github Sponsor
Info
Info
Find out what's new!
RegEx101 Wiki
Report bugs or make suggestions
What's new?
Loading content...
Close
Regex Editor
Regex Editor
Community Patterns
Community Patterns
Account
Account
Regex Quiz
Regex Quiz
Settings
Settings
Live Help
Live Help
Get help on Discord
Get help on IRC
Order By
Most Recent
Highest Score
Lowest Score
Most upvotes
Most downvotes
Filter by Flavor
PCRE2 (PHP >=7.3)
PCRE (PHP <7.3)
ECMAScript (JavaScript)
Python
Golang
Java 8
.NET (C#)
Rust
Sponsors
Community Patterns
Search among 9,620 community submitted regex patterns...
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
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)
-
9 years ago
2014-06-26 07:52
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
youtube links in wp/embed context
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-06-25 22:13
0
1 upvotes, 1 downvotes (score 9.5%) (You must be signed in to vote)
google result li item
PCRE (PHP <7.3)
Trying to output http://www.fs.usda.gov/malheur or thereabouts
Submitted by
ape
-
9 years ago
2014-06-24 18:19
4
20 upvotes, 16 downvotes (score 39.6%) (You must be signed in to vote)
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
-
9 years ago
2014-06-24 11:29
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
đâs
PCRE (PHP <7.3)
ddấdadasdasd
Submitted by
anonymous
-
9 years ago
2014-06-24 07:52
2
2 upvotes, 0 downvotes (score 34.2%) (You must be signed in to vote)
Minecraft Entity Target Splitter
PCRE (PHP <7.3)
Regex to match part of minecraft command entity targets
Submitted by
aziis98
-
9 years ago
2014-06-23 23:23
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
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
-
9 years ago
2014-06-23 17:11
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
filter tags and select text in between.
PCRE (PHP <7.3)
You can use it as a language selector.
Submitted by
koko
-
9 years ago
2014-06-23 12:20
2
5 upvotes, 3 downvotes (score 30.6%) (You must be signed in to vote)
HTTP url parser
PCRE (PHP <7.3)
Parses a URL to the different parts
Submitted by
AmitK
-
9 years ago
2014-06-23 09:21
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
blah
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-06-19 07:04
-3
2 upvotes, 5 downvotes (score 8.2%) (You must be signed in to vote)
regex help
PCRE (PHP <7.3)
help please. i need regex,
Submitted by
James
-
9 years ago
2014-06-18 21:07
1
5 upvotes, 4 downvotes (score 26.7%) (You must be signed in to vote)
MAtch all lines starting with # to remove em
PCRE (PHP <7.3)
no description available
Submitted by
Jactaest
-
9 years ago
2014-06-17 08:45
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
test_task_regexp_3
PCRE (PHP <7.3)
no description available
Submitted by
i.kulzazhenko
-
9 years ago
2014-06-16 19:21
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
34 ile 3982 nolu özelliklerin seçimi
PCRE (PHP <7.3)
Kemik Grubu
Submitted by
Hakan YILMAZER
-
9 years ago
2014-06-14 17:08
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
42 school post cutter
PCRE (PHP <7.3)
This regex cut informations from post of the 42 school
Submitted by
Kerosene2000
-
9 years ago
2014-06-12 20:43
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
@£$¥èéùìòÇ Øø ÅåΔ_ΦΓΛΩΠΨΣΘΞ€ÆæßÉ !"#¤%&'()*+,-./:;<=>?¡ÄÖÑܧ¿äöñüÃ
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-06-12 18:25
1
4 upvotes, 3 downvotes (score 25%) (You must be signed in to vote)
Match emails, as per RFC 5322
PCRE (PHP <7.3)
Match any email, according to the grammer in RFC 5322, found at http://tools.ietf.org/html/rfc5322
Submitted by
Nikita Popov
-
9 years ago
2014-06-12 03:20
1
3 upvotes, 2 downvotes (score 23.1%) (You must be signed in to vote)
Triple Quoted String
PCRE (PHP <7.3)
More powerful than python style, this supports things like """" """", which matches totally. Also supports """a""""""b""", where there are two matches: """a""","""b""".
Submitted by
Flaviu
-
9 years ago
2014-06-12 03:06
0
6 upvotes, 6 downvotes (score 25.4%) (You must be signed in to vote)
Matches when the string does not contain an exact word
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
2014-06-10 11:59
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
MongoDB _ID
PCRE (PHP <7.3)
Detect if is a valid id for MongoDB
Submitted by
manuerumx
-
9 years ago
2014-06-09 17:08
1
...
468
469
470
471
472
473
474
...
481
background-image URL
1
1 upvotes, 0 downvotes (score 20.7%) (You must be signed in to vote)
Regular Expression
PCRE (PHP <7.3)
/
background
\-
image:
(?:
{1,}
|)
url
(?:
{1,}
|)
\(
[
'|"
]
(
.
*
)
[
'|"
]
\)
/
Open regex in editor
Description
Loading markdown...
Submitted by
Mutator
-
9 years ago
2014-07-21 10:51