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,000 community submitted regex patterns...
-1
Replace comma separated decimals (comma instead of point)
ECMAScript (JavaScript)
Matches, line by line, a comma separated list of decimal numbers with comma as decimal character (Spanish way) Produces a list of comma separated pairs (space separated innermost) of decimal numbers with point as decimal character (English way)
Submitted by
Bruno A. Castro
-
9 years ago
1
Domain Regex (line start)
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
9 years ago
1
drupal 7 fix conditional fields Features export
PCRE (PHP <7.3)
intended for JetBrains IDEs regex find/replace
Submitted by
anonymous
-
9 years ago
1
removing a match (Date timefield)
PCRE (PHP <7.3)
trimming unwanted timestamps
Submitted by
Kmna
-
9 years ago
1
pattern
PCRE (PHP <7.3)
lookahead
Submitted by
Kmna
-
9 years ago
0
date format slicing
PCRE (PHP <7.3)
lookahead
Submitted by
Kmna
-
9 years ago
10
Valid Telephone Number
ECMAScript (JavaScript)
This regex validates varying types of telephone numbers.
Submitted by
Adam Recvlohe
-
9 years ago
1
get rid of hash tag
ECMAScript (JavaScript)
no description available
Submitted by
LittlePiggy
-
9 years ago
2
Basic Email
PCRE (PHP <7.3)
no description available
Submitted by
Kareem Cambridge
-
9 years ago
1
Match zero-trimmed, quarter increment number
ECMAScript (JavaScript)
000.250 => 0.25 1.1 => 1 0.0 => 0
Submitted by
Paul Erickson
-
9 years ago
1
java
Python
no description available
Submitted by
anonymous
-
9 years ago
1
Replace comma in brackets
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Backline
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
input variable legnth string to group
PCRE (PHP <7.3)
select leading X digits, remove zero if present, and insert 6 or 7 digit length into a name group
Submitted by
anonymous
-
9 years ago
1
Setting Conversion - Original
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Split user agent into groups
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
Regex - global match, multiline
Python
no description available
Submitted by
MetalMuzu
-
9 years ago
0
<Trigger R="In a burst of feathers, a portal appears!" SD="DUCK PORTAL
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
mail
PCRE (PHP <7.3)
mail
Submitted by
anonymous
-
9 years ago
0
Search href in <a> tag (internal links)
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
9 years ago
1
...
763
764
765
766
767
...
900
Community Library Entry
1
Regular Expression
ECMAScript (JavaScript)
/
(
(?:
[
\w
'-
]
+
,
\s
+
)+
(?:
[
\w
'-
]
+
\s
){0,2}
[
\w
'-
]
+
)
(
\s
+
(
and
|
or
)
\s
+
[
\w
'-
]
+
)
/
gi
Open regex in editor
Description
Insert comma in lists before the word "and" or "or".
Submitted by
Mogsdad w/ assist from TerryAtOpus
-
9 years ago