Hollowyearz

Regexp get shortPath from absolutePath

Dec 1st, 2013
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.15 KB | None | 0 0
  1. $sSelect = "C:\Windows\regedit.exe"
  2. $shortPath = StringRegExpReplace($sSelect, ".+\\(.*\..*)$", "/$1")
  3. ConsoleWrite("$shortPath =  " & $shortPath & @CRLF)
Advertisement
Add Comment
Please, Sign In to add comment