I need to read files using vbscript and remove all leading spaces including any tabs. I now LTRIM will remove the leading spaces but how do I remove tabs also.
Thank
This function removes all leading whitespace (spaces, tabs etc) from a string:
Function LTrimEx(str) Dim re Set re = New RegExp re.Pattern = "^\s*" re.Multiline = False LTrimEx = re.Replace(str, "") End Function