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...
1
Simple, universal and short regex to find quoted strings. Invalid quotes inside string ignored. flag s (single-line) allows to find multiline strings
Python
'string in simple quotes' "in double-quotes" in back-quotes "Works good with symbols ' or " or ` inside the string" "All another type quotes "' inside string are ignored" use something like \ or \" or \' " Matches only identical quotes on string start and end ' // regex can`t find this...
Submitted by
V. Martian
-
5 years ago
1
Traefik stripprefixregex for web apps
Golang
Notes: Do not forget to escape the $ by an additional $. Escaping ? like \? does not work. But you could use [?] instead End result should be like this: "traefik.http.middlewares.r6tt-dev-web.stripprefixregex.regex=^/[a-z0-9/]+[a-z0-9]+([?]+.*)?$$"...
Submitted by
anonymous
-
4 years ago
1
Last Occurrence of comma(,) in a string
ECMAScript (JavaScript)
Used this to dynamically create placeholder text when a user changed the coordinates format from default to custom. ex ['DD', 'DDM', 'DMS'] to remove the comma from the string. The format comes from an array of strings so I had to do a join(', ').replace(/\,(?=*$)/g, ' or') to get DD, DDM or DMS
Submitted by
anonymous
-
5 years ago
1
map json
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
4 years ago
1
part 1
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
day date time
Python
no description available
Submitted by
anonymous
-
4 years ago
1
each section searched with line breaks still in 2.0 - gets entire section from From
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
email capturing
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
Role regex liferay-developer
PCRE (PHP <7.3)
Regex to liferay proyect for Role -> Developer
Submitted by
anonymous
-
4 years ago
1
Role regex ODH Developers
PCRE (PHP <7.3)
Regex to proyect ODH for ROLE -> Developers
Submitted by
anonymous
-
4 years ago
1
capturing div a or span or etc
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
c comments
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
c without comments for valid c code
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
word boundary position
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
4 years ago
1
matching numbers
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
4 years ago
1
matching phone numbers
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
4 years ago
1
Replacing markup link to html
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
4 years ago
1
C# Variable Signature
Python
Used for extracting information from doxygen. Handles: modifiers type, with generics name...
Submitted by
anonymous
-
4 years ago
1
Image tags
PCRE (PHP <7.3)
Extract image tags from a HTML code
Submitted by
anonymous
-
4 years ago
1
words in same sentence (also not consecutive)
ECMAScript (JavaScript)
La regex individua piĆ¹ parole, anche non consecutive, presenti nella stessa frase (non separate da un punto). Affinata per la gestione dell'attribuzione del flag cantina dell'importer.
Submitted by
anonymous
-
4 years ago
1
...
770
771
772
773
774
...
902
Community Library Entry
0
Regular Expression
Java 8
"
^
(
(
[^
<>()
[
\]\\
.,;:
\s
@
\"
]]
+
(
\.
[^
<>()
[
\]\\
.,;:
\s
@
\"
]]
+
)*
)
|
(
\"
.
+
\"
)
)
@
(
(
\[
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\.
[
0
-
9
]
{1,3}
\]
)
|
(
(
[
a
-
zA
-
Z
\-
0
-
9
]
+
\.
)+
[
a
-
zA
-
Z
]
{2,}
)
)
$
"
gm
Open regex in editor
Description
Email Validation Pattern
Submitted by
Aslam Anver
-
3 years ago