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 18,040 community submitted regex patterns...
-3
Replace abba with ABBA
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
-3
get table name from mapfile
PCRE (PHP <7.3)
gets a postgis tablename from a mapfile with the given layer name, may not work depending on your mapfile layout
Submitted by
warnock
-
9 years ago
-3
Clean empty tags from HTML tags incl. tags containing space(s)
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
-3
matching words between tags
ECMAScript (JavaScript)
matching words between square brachets tags include newline or carriage return
Submitted by
anonymous
-
9 years ago
-3
Regex Include & Exclude
PCRE (PHP <7.3)
Exclude part of a string in an include string.
Submitted by
anonymous
-
9 years ago
-3
IPv4 address
Python
Matches any IPv4 address
Submitted by
anonymous
-
9 years ago
-3
Xml Parser (improved description)
PCRE (PHP <7.3)
]+)\s()\s(?:\/>|>(.)) - (with global) finds all tags in scope 1st group is tagname 2nd group is attributes 3rd group (if it exists) is value of the tag ...
Submitted by
veryanonymous
-
9 years ago
-3
Working With Data regex sample text
PCRE2 (PHP >=7.3)
This is a sample text for use at my "Working With Data" workshop session on regular expressions.
Submitted by
anonymous
-
3 years ago
-2
Date time
PCRE (PHP <7.3)
no description available
Submitted by
Mr.Neutro
-
11 years ago
-2
Russian mobile number normilizer (dumb)
PCRE (PHP <7.3)
no description available
Submitted by
fullpipe
-
11 years ago
-2
Get text between quotes (ignore escaped ones)
PCRE (PHP <7.3)
http://stackoverflow.com/a/171499/1519058
Submitted by
Enissay
-
11 years ago
-2
Filter IP from beggin of log
PCRE (PHP <7.3)
no description available
Submitted by
W
-
11 years ago
-2
Ukazka
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
-2
failed attempt
PCRE (PHP <7.3)
no description available
Submitted by
DynV
-
11 years ago
-2
A masz!
PCRE (PHP <7.3)
no description available
Submitted by
Ja
-
11 years ago
-2
[A-Z]+[a-z]{1,2}[0-9]*
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
-2
Why doesn't it stop at the period?
PCRE (PHP <7.3)
try to match just the name from this: Copyright © 2005 Candy Arrington. Used by permission. All rights reserved.
Submitted by
anonymous
-
11 years ago
-2
Regular expression for both IPv6 and IPv4 URL
PCRE (PHP <7.3)
no description available
Submitted by
Henry Li
-
11 years ago
-2
IP 3 words and a number
PCRE (PHP <7.3)
Matches an Ip and any 3 words and a number after separated by any number of spacing characters.
Submitted by
Attalward
-
11 years ago
-2
Unicode email sanitising
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
11 years ago
1
...
527
528
529
530
531
...
902
Community Library Entry
-1
Regular Expression
ECMAScript (JavaScript)
/
(?<=
(?:
^
|
[^
\\
]
)
(?:
\\\\
)*
)
(
(
[
`'"
]
)
(
.
*
?
(?:
[^
\\
]
(
\\\\
)*
|
$
)
(
\2
|
$
)
)
)
/
g
Open regex in editor
Description
匹配带引号内容,被引号包含的内容
结构(
$x
)
((前引号)(内容)(后引号))
整体内容(包含引号)
前引号
内容
后引号
默认匹配
[`'"]
引号,可以在表达式的匹配2中更改
消除转义字符对引号的影响
单个有效引号会直接匹配至末尾,若不想匹配至末尾可以移除表达式尾部的
$
Submitted by
诶!你的尾巴掉了
-
a year ago
(Last modified a year ago)