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 5,680 community submitted regex patterns...
1
HCPCS Level II codes (and modifier)
ECMAScript (JavaScript)
The CMS, who maintain these codes, describe the format as:- "HCPCS Level II codes (also known as alpha-numeric codes) consist of a single alphabetical letter followed by 4 numeric digits." (https://www.cms.gov/medicare/coding-billing/healthcare-common-procedure-system) NOTE: This regex will not ide...
Submitted by
Richard Baxter
-
4 days ago
1
All zeros after first digit
ECMAScript (JavaScript)
Number string where only zeros follow the first digit
Submitted by
anonymous
-
3 days ago
2
Error in Refex
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
2
sample
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
2
US Postal Code
ECMAScript (JavaScript)
refactor
Submitted by
jay johnson
-
10 years ago
2
US and Canada Regex
ECMAScript (JavaScript)
A zipcode regex for validation of both US and Canada
Submitted by
Kyle M.
-
10 years ago
2
Find 'console.' but not 'console.log'
ECMAScript (JavaScript)
no description available
Submitted by
Jay Johnson
-
10 years ago
2
Replace \n by <br />
ECMAScript (JavaScript)
Replace non-ending string \n by the HTML tag
Submitted by
anonymous
-
10 years ago
2
Palabras en mayúscula que no están después de un punto
Python
no description available
Submitted by
anonymous
-
10 years ago
2
Punto antes de ¿ o ¡
ECMAScript (JavaScript)
Corregir la falta de punto cuando se abre un signo de exclamación o interrogación para el idioma español.
Submitted by
paconaranjo
-
10 years ago
2
Parasite subtitles
Python
no description available
Submitted by
Andrey Spiridonov
-
10 years ago
2
trim string
ECMAScript (JavaScript)
trim leading and trailing whitespace from a string
Submitted by
Dave Atchley
-
10 years ago
2
JavaScript trim string
ECMAScript (JavaScript)
Trim leading/trailing space on a string: do not use /gm flags. Trim each line of a multiline string: use the /gm flag.
Submitted by
https://github.com/naomik
-
10 years ago
2
xbmc - videodevil - chaturbate - test
Python
no description available
Submitted by
anonymous
-
10 years ago
2
haml attribute parsing
ECMAScript (JavaScript)
no description available
Submitted by
OnlineCop
-
10 years ago
2
Javascript: howto get rid of resulting ""
ECMAScript (JavaScript)
Hey folks, I try to do smth like this: var s = 'this is a "" && "string constant" and this "is another" one', result = s.match(new RegExp('"{1}(.*?)"{1}', 'g')); console.log(result);...
Submitted by
anonymous
-
10 years ago
2
filename split 2
ECMAScript (JavaScript)
no description available
Submitted by
Miloš Ratković
-
10 years ago
2
Match number in html
ECMAScript (JavaScript)
Prevent matching in markup attributes
Submitted by
Mathieu Civel
-
10 years ago
2
full asshole
ECMAScript (JavaScript)
no description available
Submitted by
alex
-
10 years ago
2
python regex
Python
no description available
Submitted by
anonymous
-
10 years ago
1
...
266
267
268
269
270
...
284
Error in Refex
2
Regular Expression
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
-
11 years ago