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
HTML color search
PCRE (PHP <7.3)
Searches for hex colors in HTML code.
Submitted by
Barlean
-
10 years ago
1
regular expression to avoid white spaces
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
1
json
PCRE (PHP <7.3)
no description available
Submitted by
suat & umut
-
10 years ago
2
SFTP or FTP url
PCRE (PHP <7.3)
Parse an SFTP or FTP url and brak it into named capture groups.
Submitted by
Cullen Johnson
-
10 years ago
1
Parse JSON key value
PCRE (PHP <7.3)
no description available
Submitted by
Kostas Trichas
-
10 years ago
2
find numeric groups in strings
PCRE (PHP <7.3)
no description available
Submitted by
Vovan
-
10 years ago
-2
Decimal Number
ECMAScript (JavaScript)
Parse decimal numbers with optional thousands and/or decimal separator. #i18n #l11n #international
Submitted by
Andreas Pizsa
-
10 years ago
5
Find All Python imports
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
10 years ago
0
Unicode alpha-numeric regex
PCRE (PHP <7.3)
Tests for all unicode language characters and number. Excludes any sentence joining characters etc.
Submitted by
Jamie
-
10 years ago
3
javascript template replacement
ECMAScript (JavaScript)
no description available
Submitted by
akamaozu
-
10 years ago
2
Currency Amount
PCRE (PHP <7.3)
Format: x0.00 Valid: 13.37 4.20 1.00...
Submitted by
anonymous
-
10 years ago
2
Any number between 0 and 10 with 0 or 1 decimal places
PCRE (PHP <7.3)
Matches any number between 0 and 10 (inclusive) with 0 or 1 decimal places. Note that .5 will NOT be matched but 0.5 will. Also 10.X will not be matched, but 10 will.
Submitted by
Matt Coubrough
-
10 years ago
5
relative to absolute
PCRE (PHP <7.3)
relative to absolute
Submitted by
xp_prg
-
10 years ago
2
Currency amount without currency symbol
PCRE (PHP <7.3)
Matches numbers that are likely to by financial amount. Does not consider the type of currency.
Submitted by
elgehelge
-
10 years ago
4
AMEX, VISA, MASTERCARD, and DISCOVER REGEX
PCRE (PHP <7.3)
First pass at a way to find credit card data using regex.
Submitted by
David Maislin
-
10 years ago
2
strip parentheses enclosed text with no keywords
PCRE (PHP <7.3)
strip parentheses enclosed text with no keywords - handles nested parentheses - if using brackets/braces normalize string to parentheses then use the regex
Submitted by
marie bacuno
-
10 years ago
-1
woop
Python
no description available
Submitted by
anonymous
-
10 years ago
1
hostname
PCRE (PHP <7.3)
RFC 1123 compatible RegEx for a hostname (not a domain name), inspired by chapter 7.15 from Regular Expressions Cookbook.
Submitted by
anonymous
-
10 years ago
4
Hibernate SQL Reductor
ECMAScript (JavaScript)
If you want to understand an SQL statement for Hibernate: this replaces the selected fields in an SQL statement generated by Hibernate by a shorthand, since you usually just care about the logic. E.g. it changes select foo0_.bla as bla1_3, foo0_.bar as bar1_3, foo0_.baz1_3 as baz1_3 from ... to sele...
Submitted by
Hans-Peter Stoerr www.stoerr.net
-
10 years ago
1
HTML Anchor <a> Tag Grabber(overcome newlines)
ECMAScript (JavaScript)
no description available
Submitted by
Namikaze Ray a.k.a Pendecosen
-
10 years ago
1
...
13
14
15
16
17
...
902
Community Library Entry
-2
Regular Expression
ECMAScript (JavaScript)
/
\b
(
(?:
\d
{1,3}
)
(?:
(
[
,.
'
]
?
)
\d
{3}
)?
(?:
\2
\d
{3}
)*
)
(?:
(?:
|
(?!
\2
)
)
(
[
,./
]
)
(
\d
+
)
)?
\b
/
Open regex in editor
Description
Parse decimal numbers with optional thousands and/or decimal separator.
#i18n #l11n #international
Submitted by
Andreas Pizsa
-
10 years ago