Results 1 to 3 of 3

Thread: Problem with System.Text.RegularExpressions.Regex.Split [Resolved]

Threaded View

  1. #1

    Thread Starter
    Registered User
    Join Date
    Apr 2003
    Location
    Klang, Selangor, Malaysia
    Posts
    163

    Question Problem with System.Text.RegularExpressions.Regex.Split [Resolved]

    I want to split a string:
    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:
    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.
    Last edited by albertlse; Aug 21st, 2003 at 08:10 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width