Regular Expressions 101

Community Library

Community Library Entry

1

Regular ExpressionOpen Workspace

/
^[ \s\0\x0B]+|[ \s\0\x0B]+$
/
gm

Description
Created·2014-08-12 13:45
Type·Match
Flavor·PCRE (Legacy)

Popular trim Regular Expression.

Matches whitespace characters at the beginning and end of a string.

Check out the usage examples in the test string to see how you can implement it into your own code.

Submitted by Shawn G.
Open Workspace