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
There are currently no sponsors.
Become a sponsor today!
Community Patterns
Search among 12,860 community submitted regex patterns...
0
Delete spaces between words only
PCRE (PHP <7.3)
Delete spaces between words only
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
0
Delete spaces at beginning or end of a string
PCRE (PHP <7.3)
Delete spaces at beginning or end of a string
Submitted by
anonymous
-
2 years ago
0
Match Internal Links
ECMAScript (JavaScript)
Detect internal links in page
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
0
Match markdown link
ECMAScript (JavaScript)
Regex match markdown link
Submitted by
anonymous
-
2 years ago
(Last modified 2 years ago)
0
WinSCP file list parse
ECMAScript (JavaScript)
Capture details of file sizes and names from a ls listing from WinSCP
Submitted by
anonymous
-
2 years ago
0
div change to button
ECMAScript (JavaScript)
div change to button
Submitted by
mtac
-
2 years ago
0
Positive Integer
ECMAScript (JavaScript)
(/^\d{0,}(([.]{1})?\d?){0,}$/gi
Submitted by
Wasiu Ramoni
-
2 years ago
0
Matches everything but digits and allows for one decimal point.
ECMAScript (JavaScript)
Matches everything but digits and allows for one decimal point. cannot start with a negative Allowed: 123...
Submitted by
Random Guy 70hz
-
2 years ago
0
QueryString and Datasource
ECMAScript (JavaScript)
asdasd
Submitted by
anonymous
-
2 years ago
0
Website Regex
ECMAScript (JavaScript)
Finds all website URLs
Submitted by
JohnnyJTH
-
2 years ago
0
password strong
PCRE (PHP <7.3)
password 8-16 with A-Z a-z 0-9 and !@#$ without %
Submitted by
alfxjx
-
2 years ago
-1
Twitter Tweet URL
PCRE (PHP <7.3)
This ensures that a link to tweet strictly matches
Submitted by
anonymous
-
2 years ago
0
get teacher url
ECMAScript (JavaScript)
will match ^/teacher//list$ ^/teacher//file/$ ^/teacher//info/$ ...
Submitted by
anonymous
-
2 years ago
0
Clean phone numbers
ECMAScript (JavaScript)
(204)555-5555 (204)-(555)-(5555) 204-555-5555 To: 2045555555
Submitted by
smitpatelx
-
2 years ago
0
OS正则表达式
Java 8
zzx
Submitted by
zzx
-
2 years ago
0
DB
Java 8
DB
Submitted by
DB
-
2 years ago
0
Default HTML5 with German Umlauts
ECMAScript (JavaScript)
Adds german special characters äöüß to the default HTML5 regex
Submitted by
mroettgen
-
2 years ago
0
括号匹配
Java 8
(\[]\])|(【】)|(())|(\(\))
Submitted by
nasion
-
2 years ago
0
JavaScript Parse CSS Selector
ECMAScript (JavaScript)
Parse CSS Selector in the form element#id.class into its components. Any of the three elements can be missing.
Submitted by
Mark
-
2 years ago
0
Get First Name
ECMAScript (JavaScript)
Grab a first name from a full name string
Submitted by
Tom
-
2 years ago
1
...
614
615
616
617
618
...
643
Delete spaces at beginning or end of a string
0
Regular Expression
PCRE (PHP <7.3)
/
(
^
[
]
{1,}
)
|
(
[
]
{1,}
$
)
/
gm
Open regex in editor
Description
Delete spaces at beginning or end of a string
Submitted by
anonymous
-
2 years ago