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
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 3,640 community submitted regex patterns...
0
use-capture-groups-to-search-and-replace
ECMAScript (JavaScript)
(\w+)(\s)(\w+)\2(\w+) in this exercise we have to use capture groups and then replace the string order to 'three two one'. But first, when you are using the capture group you may have asked yourself why the code below does not work: (\w+)(\s)\1\2\1 to match the sting "one two three"...
Submitted by
gabriel silva lima
-
a year ago
0
GET country, prefix extended
ECMAScript (JavaScript)
This regex match group (country & Prefix) Separated by spaces or \s+ ↓↓ Example ↓↓ Australia 61 Dominica 1 (767) República Dominicana 1 (809/829/849) ...
Submitted by
https://github.com/hzvvictor
-
a year ago
(Last modified a year ago)
0
Sustitution of comments (one line) //
ECMAScript (JavaScript)
Sustitution of comments (one line) // Example ~ input (before) ↓↓ : // comment textplain other-text ...
Submitted by
hzvvictor: https://github.com/hzvvictor
-
a year ago
(Last modified a year ago)
0
Twitch data capturing
ECMAScript (JavaScript)
Matches the data sent by the twitch IRC and captures into various groups
Submitted by
Bucky
-
a year ago
(Last modified a year ago)
0
text has numbers
ECMAScript (JavaScript)
text has numbers
Submitted by
vijay
-
a year ago
1
Anom
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
1
get image with classname
ECMAScript (JavaScript)
no description available
Submitted by
@cloverink
-
11 years ago
1
js
ECMAScript (JavaScript)
no description available
Submitted by
sd
-
11 years ago
1
regular expression to replace except text from html tags
ECMAScript (JavaScript)
expression to look for words in innerText & not in html tags as id or class or style name
Submitted by
umarfarukh
-
11 years ago
1
Replace second (or further) html statement in a whole code
ECMAScript (JavaScript)
This regex replace the second tag content which has the prefix ":". If you want to replace the third, just increase the statement {1} to {2}, and so go on.
Submitted by
Caio Oliveira
-
11 years ago
1
Matching an Email
ECMAScript (JavaScript)
no description available
Submitted by
appsunited
-
11 years ago
1
non negative integers
ECMAScript (JavaScript)
no description available
Submitted by
jay johnson
-
10 years ago
1
SSN
ECMAScript (JavaScript)
no description available
Submitted by
jay johnson
-
10 years ago
1
Singular or Plural
ECMAScript (JavaScript)
no description available
Submitted by
Gavin Jackson
-
10 years ago
1
Find UnCommented Console. Code
ECMAScript (JavaScript)
no description available
Submitted by
Jay Johnson
-
10 years ago
1
javascript variable
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
1
dsf
ECMAScript (JavaScript)
no description available
Submitted by
fdsfdsfdsf
-
10 years ago
1
gh
ECMAScript (JavaScript)
no description available
Submitted by
ghb
-
10 years ago
1
Select inside <a> tag
ECMAScript (JavaScript)
no description available
Submitted by
Vinay
-
10 years ago
1
12345
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
10 years ago
1
...
111
112
113
114
115
...
182
NZ Phone Number
0
Regular Expression
ECMAScript (JavaScript)
/
^
(
(
(
\+
?
64
[
3
-
9
]
|
0
[
3
-
9
]
)
\d
{7}
)
|
(
(
\+
?
642
\d
{1}
|
02
\d
{1}
)
\d
{6,8}
)
|
(
(
(
\+
?
64800
|
0800
)
|
(
\+
?
64508
|
0508
)
)
\d
{6,8}
)
)
$
/
g
Open regex in editor
Description
no description available
Submitted by
anonymous
-
7 years ago