Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Trim line ➡︎ ^\s*(.*?)\s*$
Open Workspace
PCRE (Legacy)
Substitution
Created 2020-11-01 22:33
0
Regular Expression
/
^\s
*
(
.
*?
)
\s
*
$
/
gm
Description
Trim line
Submitted by
Anonymous