DotNetBlocks
Programmer
Hello, I have a string that i want to fit a specific format, but when i try and apply it i get an error.
What am i doing wrong?
I get the following error:
What am i doing wrong?
Code:
dim chekme as string ="999999999999"
chekme = Format(chekme, "^\d{5}-\d{2}-\d{3}-\d{2}$")
' It should look like this "99999-99-999-99"
I get the following error:
Code:
Index (zero based) must be greater than or equal to zero and less than the size of the argument list.