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
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 7.0 (C#)
Rust
Sponsors
Community Patterns
Search among 3,620 community submitted regex patterns...
0
Machine readable passport number (second line)
ECMAScript (JavaScript)
Second line of the machine readable passport, based on the excellent article here - http://www.highprogrammer.com/alan/numbers/mrp.html
Submitted by
Leigh Garland
-
9 years ago
0
float
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
0
WOrd with colon
ECMAScript (JavaScript)
no description available
Submitted by
HJ
-
9 years ago
0
Phone validate
ECMAScript (JavaScript)
Validate Phone number even if contain country code
Submitted by
Jorge Cervantes
-
9 years ago
0
Remove XML-Style Comments (JavaScript)
ECMAScript (JavaScript)
Exist a problem with simple regex in JS Solution from: https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9781449327453/ch09s10.html
Submitted by
Arkadiusz Sawicz
-
9 years ago
0
Match_Between_Nth_And_Nth+1_Occurence_Of_Character_Square_Brackets
ECMAScript (JavaScript)
no description available
Submitted by
Connor Goddard
-
9 years ago
0
ASP.NET Web Forms dates in JSON
ECMAScript (JavaScript)
Look for date objects in JSON returned from ASP.NET Web Forms.
Submitted by
anonymous
-
9 years ago
0
CSV parser
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
0
Validador Email
ECMAScript (JavaScript)
Só aceita emails que comecem com letras ou números, tenha de 0 a 32 caracteres, letras, números, ponto ou hífen, antes do @
Submitted by
Gustavo Américo (GAG)
-
9 years ago
0
Google-like search query pattern matching
ECMAScript (JavaScript)
To identify quoted strings, single terms as well as subtracting those types. Based on: http://stackoverflow.com/questions/1883188/google-like-search-query-tokenization-string-splitting
Submitted by
Michael La Voie
-
9 years ago
0
Password Any Character len: 8-63
ECMAScript (JavaScript)
Test for Password using any character. Length of password can be from 8 - 63 characters
Submitted by
Jerry Orta
-
9 years ago
0
phone number
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
0
WEB URL
ECMAScript (JavaScript)
only WEB URL ex:http://aaa.com.tw https://aaa.com aaa.com aaa.com.tw
Submitted by
anonymous
-
9 years ago
0
HTTP / HTTPS link check
ECMAScript (JavaScript)
Check if string contains a valid HTTP / HTTPS link
Submitted by
Dimorphic
-
9 years ago
0
Email ID-Full Validation
ECMAScript (JavaScript)
This Regx has full validation of a standard email ID
Submitted by
Eric Abraham
-
9 years ago
0
Get 'value' attribute in 'a' html tag
ECMAScript (JavaScript)
Regex used to avoid text-angular/angular $sanitize temporarily
Submitted by
Derek Severson
-
9 years ago
0
first word until whitespace/linebreak
ECMAScript (JavaScript)
no description available
Submitted by
jpeldes
-
9 years ago
0
JSON Double Quoting
ECMAScript (JavaScript)
Insert double quotes between matches around colons. You need to wrap substition.substr(1)+'"' with parenthesis afterwards. (substr is needed to remove hanging doublequote at the start of the string) ex) var json = '{ '+json_ish.replace(regex,subs).substr(1)+'" }'; ...
Submitted by
anonymous
-
9 years ago
0
Outside attr keyword
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
0
html img tag src
ECMAScript (JavaScript)
get src url from img tag in html
Submitted by
anonymous
-
8 years ago
1
...
71
72
73
74
75
...
181
HTML tags and comments split
0
Regular Expression
ECMAScript (JavaScript)
/
(
<
(?!
\/
)
[
a
-
zA
-
Z
\-
0
-
9
]
+
?
(?:
[
\s
]
*
?
[
a
-
zA
-
Z
\-
0
-
9
]
+
?
(?:
=
(?:
"
[
\s\S
]
*
?
"
|
'
[
\s\S
]
*
?
'
)
){0,1}
)*
?
[
\s
]
*
?
\/
{0,1}
>
)
|
(
<
\/
[
\S\s
]
+
?
>
)
|
(
<!--
[
\s\S
]
*
?
-->
)
/
gmi
Open regex in editor
Description
This regex is used to split HTML tags and comments.
Submitted by
Danilo Celestino de Castro
-
7 years ago