WHITESPACE - trim

Share actions you've created here.
Post Reply
Jesse
Posts: 8
Joined: Wed Jul 27, 2011 8:52 pm

WHITESPACE - trim

Post by Jesse » Wed Jul 27, 2011 8:59 pm

Code: Select all

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

Post Reply