VBScript has no built-in function where we can find all occurrences of a sub string inside a string. Only regular with expressions ( Regexp ) the task is easier. However you need to use Regexp, Matches, and Match objects.
Posted in VBScript
VBScript has no built-in function where we can find all occurrences of a sub string inside a string. Only regular with expressions ( Regexp ) the task is easier. However you need to use Regexp, Matches, and Match objects.
Posted in VBScript
April 3rd, 2008 at 11:24 pm
It may be nice to trim the comma off of the last number of the output.
Perhaps after the loop While add:
If right(output,1) = “,” Then
str_len = len(output)
output = left(output,str_len-1)
End If