Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-10-12 21:42
Flavor·Python

r"
^\s*(\S.*\S)\s*$
"
gm
Open regex in editor

Description

identifies spaces at the beginning and end of lines. Can be used as a Trim function

Submitted by Eric Hills