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 6,300 community submitted regex patterns...
2
JavaScript trim string
ECMAScript (JavaScript)
Trim leading/trailing space on a string: do not use /gm flags. Trim each line of a multiline string: use the /gm flag.
Submitted by
https://github.com/naomik
-
10 years ago
1
trGet
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
-2
Regex to select text withing square brackets.
ECMAScript (JavaScript)
no description available
Submitted by
Dhrubajyoti Gogoi
-
11 years ago
2
trim string
ECMAScript (JavaScript)
trim leading and trailing whitespace from a string
Submitted by
Dave Atchley
-
11 years ago
1
Signed integer
ECMAScript (JavaScript)
no description available
Submitted by
markus hooge
-
11 years ago
7
split URL into location-resource-params (JavaScript)
ECMAScript (JavaScript)
Extract resource location, name and query parameters from a URL (JavaScript version)
Submitted by
cebence
-
11 years ago
4
Repeated words (JS)
ECMAScript (JavaScript)
no description available
Submitted by
paconaranjo
-
11 years ago
1
Remove italics in less than three letters...
ECMAScript (JavaScript)
Subtitle Edit
Submitted by
paconaranjo
-
11 years ago
2
Punto antes de ¿ o ¡
ECMAScript (JavaScript)
Corregir la falta de punto cuando se abre un signo de exclamación o interrogación para el idioma español.
Submitted by
paconaranjo
-
11 years ago
35
Google like regex
ECMAScript (JavaScript)
Attempts to mimic Google search box behavior, returning an array with the separated search strings (that keep the +/- indicator for following operations)
Submitted by
mettjus
-
11 years ago
0
ssi tag into html contents with file and virtual directives
ECMAScript (JavaScript)
no description available
Submitted by
Prashant Gaur
-
11 years ago
3
po box
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
1
12345
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
-2
Select ID from regex101 URL
ECMAScript (JavaScript)
no description available
Submitted by
Vinay
-
11 years ago
1
Select inside <a> tag
ECMAScript (JavaScript)
no description available
Submitted by
Vinay
-
11 years ago
72
Regex for telephone numbers all over the world
Recommended
ECMAScript (JavaScript)
Detects most of the phone numbers all over the world
Submitted by
Aditya Joshi
-
11 years ago
(Last modified a year ago)
1
gh
ECMAScript (JavaScript)
no description available
Submitted by
ghb
-
11 years ago
1
dsf
ECMAScript (JavaScript)
no description available
Submitted by
fdsfdsfdsf
-
11 years ago
2
Replace \n by <br />
ECMAScript (JavaScript)
Replace non-ending string \n by the HTML tag
Submitted by
anonymous
-
11 years ago
1
javascript variable
ECMAScript (JavaScript)
no description available
Submitted by
anonymous
-
11 years ago
1
...
311
312
313
314
315
Community Library Entry
107
Regular Expression
ECMAScript (JavaScript)
/
^
[
\t
]
+
|
[
\t
]
+
$
/
gm
Open regex in editor
Description
Trim leading and trailing whitespace from a string.
Submitted by
fp
-
11 years ago
(Last modified 3 months ago)