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
Community Patterns
Search among 5,700 community submitted regex patterns...
0
Verificar caracter repetido
Java 8
Verificar caracter repetido
Submitted by
anonymous
-
2 years ago
0
Tok. test.1
Python
T
Submitted by
anonymous
-
2 years ago
0
屏蔽脏话
ECMAScript (JavaScript)
屏蔽骂人脏话、政治言论等
Submitted by
anonymous
-
2 years ago
0
Michele XP E
ECMAScript (JavaScript)
Teste
Submitted by
Luciano
-
2 years ago
0
1030
ECMAScript (JavaScript)
Validation
Submitted by
Christopher Santos
-
2 years ago
0
Daily Stand-up - Slack to Notion
Python
Usage: Used to convert Daily Stand-up text entered in a Slack channel, i.e.: 1. 1x1s with Sam and Alex; research team meeting; non-client work; Profile UT report; future UT planning 2. Sprint planning; Profile UT Rd 2 planning meeting; 1x1 with Madison; weekly design sync; research touch-base with i...
Submitted by
TerpsFreak
-
2 years ago
0
Exercise for FreeCodeCamp - Restrict Possible Usernames
ECMAScript (JavaScript)
Usernames are used everywhere on the internet. They are what give users a unique identity on their favorite sites. You need to check all the usernames in a database. Here are some simple rules that users have to follow when creating their username. Usernames can only use alpha-numeric characters. ...
Submitted by
juanalbglz
-
2 years ago
0
Match everything in between quotes
ECMAScript (JavaScript)
Match everything in between quotes
Submitted by
anonymous
-
2 years ago
0
Matches a specific cli argument for node js
ECMAScript (JavaScript)
Ideally, to be used with JS Array join and String replace methods, like so: process.argv.join(' ').replace(/["']/g, '').match(/(?<=--path[ |=])dist\/.*(?=$)/); The join is to convert array to string to prevent iterating. The replace is to remove single or double quotes for easier matching....
Submitted by
Marc Kassay
-
2 years ago
0
LastName, FirstName MiddleName(s), Suffix
ECMAScript (JavaScript)
This Regex parses out the LastName, FirstName, MiddleName(s) (optional) and Suffix (optional). The String must have at least two words separated by a comma to match.
Submitted by
Ryan Toner
-
2 years ago
0
Title Firstname Middlename Lastname, Suffix
ECMAScript (JavaScript)
This raged parses out the Title (optional) Firstname Middlename(s) (optional) Lastname (optional) and Suffix (optional)
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
0
/@d.+e\s[[].+[\]]/gm
ECMAScript (JavaScript)
using this library, you can search for substrings of the type in a string: @delete [user_name]
Submitted by
Developer bot(my programs: https://replit.com/@developer)
-
2 years ago
0
/@.+k\s[[].+[\][msg:\s"].+"[\]]/gi
ECMAScript (JavaScript)
looking for lines like: *@block user
Submitted by
Developer bot
-
2 years ago
0
Escape sequence
ECMAScript (JavaScript)
Matches on escape sequences only. \b Backspace \f Form Feed \n New Line \r Carriage Return \t Horizontal Tabulator...
Submitted by
anonymous
-
2 years ago
0
hex string split by blank
ECMAScript (JavaScript)
match like aa bb cc dd ee ff 00 aa 13 0 1 2 3 aa
Submitted by
Victor Lin
-
2 years ago
0
Captures everything until the first hashtag
ECMAScript (JavaScript)
This captures everything from the start until the first hashtag.
Submitted by
Praeses
-
2 years ago
0
password complexity pattern
ECMAScript (JavaScript)
be at least 8 characters with at least 1 Capital , 1 Lowercase , 1 special char , 1 number
Submitted by
founet
-
2 years ago
0
get numbers removing zeros from left
ECMAScript (JavaScript)
oq?
Submitted by
anonymous
-
2 years ago
0
Match any pattern abc.def.***.uvw.xyz hackerRank
Java 8
This regex matches any pattern like in the title. HackerRank challenge modified.
Submitted by
anonymous
-
2 years ago
0
Messages
ECMAScript (JavaScript)
Show messages
Submitted by
Bot
-
2 years ago
1
...
247
248
249
250
251
...
285
Valid RGB color value
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)