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...
0
replace double space
PCRE (PHP <7.3)
string = string.replace(/ +/g," "); for just spaces OR string = string.replace(/(\s)+/g,"$1"); for turning multiple returns into a single return also.
Submitted by
anonymous
-
6 years ago
0
Get the first 2 terms in path using forward slash.
PCRE (PHP <7.3)
At first the objective was to get the string between the first and third slash but, re-working the problem, it was simpler to retrieve the first word between slashes and a subsequent word.
Submitted by
anonymous
-
6 years ago
0
Number plate Finder
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
agent phone
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
URL Teardown v2
PCRE (PHP <7.3)
Adds in teardown of the client id, environment, and domain
Submitted by
anonymous
-
6 years ago
0
URL Teardown v3
PCRE (PHP <7.3)
Adds in teardown of the client id, environment, and domain
Submitted by
anonymous
-
6 years ago
0
DNZ Zone Dump Teardown v1
PCRE (PHP <7.3)
Adds in teardown of the client id, environment, and domain
Submitted by
anonymous
-
6 years ago
0
update
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
golang
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
DNS Zone Teardown v2
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
MarkDown italic style parser
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
6 years ago
0
mail con subdominio
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
comma Split numbers
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
kiamoz
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
kiamoz
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
ПОДРОСТ
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
Ip Adress Confirm
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
Ip Adress Confirm
PCRE (PHP <7.3)
no description available
Submitted by
anonymous
-
6 years ago
0
Find pattern 0 1 2 3
PCRE (PHP <7.3)
match the string 0 0 1 0 1 2 0 1 2 3
Submitted by
Lyu JH
-
6 years ago
0
Dollar amount + Number Matching
Python
\$?\d+(?:\.\d+)?
Submitted by
anonymous
-
6 years ago
1
...
220
221
222
223
224
...
902
Community Library Entry
0
Regular Expression
PCRE2 (PHP >=7.3)
/
\w
+
(?=
api
)
/
gmi
Open regex in editor
Description
matches
someApiName
in
someApiNameApi
Submitted by
anonymous
-
4 years ago