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
Any combo of space and dash
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
4 years ago
2
Replace singleline comments with `//` or `/*...*/`, and also multi-line comments in json files.
ECMAScript (JavaScript)
This has been validated against a tsconfig.json file that i'm using and nothing else. It should work fine though. You can use this to replace comments with vscode find and replace, but using the regex in the search field, and '$2' without quotes in the replace field.
Submitted by
anonymous
-
4 years ago
0
Alphanumeric Employee ID
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
simple wild card
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
(Last modified 3 years ago)
0
DIESEL Floating point numbers
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Floating point numbers
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Extract First Word in a String with Anchor Start and Anchor End
PCRE (PHP <7.3)
Extract First Word in a String with Anchor Start and Anchor End
Submitted by
anonymous
-
4 years ago
-1
Extract Last Word in a String with Anchor Start and Anchor End
PCRE (PHP <7.3)
Extract Last Word in a String with Anchor Start and Anchor End
Submitted by
anonymous
-
4 years ago
-1
IP Address
Python
no description available
Submitted by
anonymous
-
4 years ago
0
Eastlink IPPay transaction - includes error capture
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
-1
Annuaire Notaires (personnes physique)
PCRE (PHP <7.3)
Annuaire Notaires (détecte les urls des fiches personnes physique)
Submitted by
anonymous
-
4 years ago
0
Url
ECMAScript (JavaScript)
Url minus Protocol
Submitted by
Website
-
4 years ago
0
separador de vogais e espaços
Python
no description available
Submitted by
anonymous
-
4 years ago
0
201105 - Limmex htaccess rule
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
Dimensions from part descriptions
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
0
Substitution
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
4 years ago
1
find vindi webhook requests that subscriptions has no order id
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
4 years ago
-1
Conditional
PCRE (PHP <7.3)
match String Cool! only if there is a : somewhere preciding it
Submitted by
anonymous
-
4 years ago
0
matching for expression
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
4 years ago
0
PlayStation Network Identifier | PSNID | PSN | psnid | psn
PCRE (PHP <7.3)
This expression checks whether the string is a valid psnID. between 3 and 16 characters starts with a latin letter [a-zA-Z] can only contains latin letters [a-zA-Z], arabic numbers [0-9], hyphens [-] and underscores [_] ...
Submitted by
anonymous
-
4 years ago
1
...
271
272
273
274
275
...
902
Community Library Entry
1
Regular Expression
ECMAScript (JavaScript)
/
^
rgba
?
\(
(?:
\s
+
)?
(?<r>
\d
+
(?<unit>
%
?
)
)
(?:
\s
+
)?
(?<separator>
[
\s
|,
]
)
(?:
\s
+
)?
(?<g>
\d
+
\k<unit>
)
(?:
\s
+
)?
\k<separator>
(?:
\s
+
)?
(?<b>
\d
+
\k<unit>
)
(?:
\s
+
)?
(?:
(?<=
(?:
,
.
+
)
)
(?:
,
(?:
\s
+
)?
(?<a>
(?:
\d
+
)?
(?:
\.
?
\d
+
)
)
)?
(?:
\s
+
)?
)?
\)
$
/
gm
Open regex in editor
Description
Pattern for matching actually valid RGB values.
validate separator (mixing spaces and commas between values is not valid)
validate if comma is used as separator if alpha channel is set
validate units (mixing percentage with integers is not valid)
extract
r
,
g
,
b
,
a
,
separator
and
unit
with named groups
Submitted by
BorisTB
-
3 years ago
(Last modified 3 years ago)