Please enable JavaScript to use regex101
Regular
Expressions
101
Support Regex101
Social
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)
ECMAScript (JavaScript)
Python
Golang
Java
.NET 7.0 (C#)
Rust
PCRE (Legacy)
Sponsors
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 3,480 community submitted regex patterns...
0
Old Discord Username Match
Created
·
2023-07-07 02:08
Flavor
·
ECMAScript (JavaScript)
Detect and capture every part of the old discord username system
Submitted by
N0de
0
New Discord Username
Created
·
2023-07-07 02:09
Flavor
·
ECMAScript (JavaScript)
Validates if a username is valid or not on the new discord username system
Submitted by
anonymous
0
legal edition of DCA
Created
·
2023-07-08 09:46
Flavor
·
ECMAScript (JavaScript)
Extraigo la fecha del PDF de la edición legal del diario de Centroamérica
Submitted by
anonymous
0
Html tag match
Created
·
2023-07-10 06:59
Flavor
·
ECMAScript (JavaScript)
Html tag match
Submitted by
anonymous
0
Match path that starts with
Created
·
2023-07-11 11:37
Updated
·
2023-07-13 07:57
Flavor
·
ECMAScript (JavaScript)
In my nuxt automation I want to remove src from path because nuxt don't have src dir. hence I want to remove src prefix from all path
Submitted by
JD Solanki
0
reuse-patterns-using-capture-groups
Created
·
2023-07-13 03:14
Flavor
·
ECMAScript (JavaScript)
resolving the free code camp reuse-patterns-using-capture-groups problem let repeatNum = "42 42 42"; let reRegex = /^(\d+)([" "])\1\2\1$/; ^ starts with (\d+) a digit with at least one char (or else will count spaces) and have a([" "])(space) after the digit and \1 to repeat the digit \2to repeat the space \1 to repeat the digit regex again and $ to garan it will stop after encountering a char different than the digit.
Submitted by
gabriel silva lima
0
use-capture-groups-to-search-and-replace
Created
·
2023-07-13 14:44
Flavor
·
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" this is because when you do a matching group he turns himself into a variable that capture the last value from regex and try to match again the same value not the regex itself. In the assertion above, were not simple doing : ` one two three (\w+)(\s)\1\2\1 = (\w+)(\s)(\w+)(\s)(\w+) word space word space word ` but we're doing: ` one two three (\w+)(\s)\1\2\1 one space one space one ` because the \1 aways will return the value 'one' and try to match it. So to resolve this, you have to have a capture group for EACH different word.
Submitted by
gabriel silva lima
0
Twitch data capturing
Created
·
2023-07-31 20:27
Updated
·
2023-07-31 20:28
Flavor
·
ECMAScript (JavaScript)
Matches the data sent by the twitch IRC and captures into various groups
Submitted by
Bucky
0
text has numbers
Created
·
2023-08-01 06:19
Flavor
·
ECMAScript (JavaScript)
text has numbers
Submitted by
vijay
Previous page
1
…
172
173
174
Next page
Community Library Entry
2
Regular Expression
Created
·
2013-10-02 05:20
Flavor
·
ECMAScript (JavaScript)
/
\d
+
[
.,
]
?
(
\d
+
\s
*
k
?
|
x
{2,3}
)(?=
\s
*
(
original
|
actual
|
highway
)?
\s
*
miles
)
|
(?<=
mile
(
s
|
agex
?
)
:
?
\s
*
(
is
|
~
)?
\s
*
)
\d
+
[
.,
]
?
(
\d
+
(
\s
*
k
)?
|
x
{2,3}
)
|
(
\d
+
(
\s
*
K
)
|
x
{2,3}
)
/
i
Open regex in editor
Description
no description available
Submitted by
anonymous