Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
ECMAScript (JavaScript)

Description

trim leading and trailing whitespace from a string

Submitted by Dave Atchley - 11 years ago