Regular Expressions 101

Community Patterns

trimming whitespaces from the beginning and from the end

0

Regular Expression
Python

r"
^\s*(.+?)\s*$
"

Description

trimming whitespaces from the beginning and from the end

Submitted by anonymous - a year ago