how do i split
"c:\folder\document1.doc"
to
"document1.doc"
i just want the file name part!
__________
is it possible with regex?
Printable View
how do i split
"c:\folder\document1.doc"
to
"document1.doc"
i just want the file name part!
__________
is it possible with regex?
you don't need regex.
Code:Dim myFileName As String = "c:\folder\document1.doc"
Dim justFileName As String = IO.Path.GetFileName(myFileName)
MessageBox.Show(justFileName)
Worked! Thanx:)