Page 1 of 1

WHITESPACE - trim

Posted: Wed Jul 27, 2011 1:59 pm
by Jesse

Code: Select all

Set s_reTrimWS = New RegExp
s_reTrimWS.Pattern = "^\s+|\s+$"
s_reTrimWS.Global  = True
 
Clipboard.Value = s_reTrimWS.Replace( Clipboard.Value, "" )