Mac address: no punctuation, uppercase (VBscript)

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

Mac address: no punctuation, uppercase (VBscript)

Post by Jesse » Thu Aug 29, 2013 11:14 pm

Set s_reTrimWS = New RegExp
s_reTrimWS.Pattern = "[^0-9a-fA-F]"
s_reTrimWS.Global = True

Clipboard.Value = s_reTrimWS.Replace( UCase(Clipboard.Value), "" )

Post Reply