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
1.4m articles
1.4m replys
5 comments
57.0k users