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.
Thanks.
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
2.1m questions
2.1m answers
60 comments
57.0k users