Problem with System.Text.RegularExpressions.Regex.Split [Resolved]
I want to split a string:
Quote:
C:\Documents and Settings\Tan\My Documents\Trainee\Payroll System\bin
This is the code i had written:
Code:
Dim strSplitted() As String = System.Text.RegularExpressions.Regex.Split(strFileName, "\")
But an error occurs with this error message:
Quote:
An unhandled exception of type 'System.ArgumentException' occurred in system.dll
Additional information: parsing "\" - Illegal \ at end of pattern
How can i split it?
Please guide, thank you.