Y
yxq
I want to apply the regex below in vb.net
^([a-zA-Z]\:|\\\\[^\/\\:*?"<>|]+\\[^\/\\:*?"<>|]+)(\\[^\/\\:*?"<>|]+)+(\.[^\/\\:*?"<>|]+)$
The url
http://www.regexlib.com/REDetails.aspx?regexp_id=425
But vb.net said there are invalid chars.
Dim a As String = "m:\twxt\.exe"
'The code below invalid.....
Dim b As String =
"^([a-zA-Z]\:|\\\\[^\/\\:*?"<>|]+\\[^\/\\:*?"<>|]+)(\\[^\/\\:*?"<>|]+)+(\.[^\/\\:*?"<>|]+)$"
MessageBox.Show(Regex.IsMatch(a, b))
Thank you
^([a-zA-Z]\:|\\\\[^\/\\:*?"<>|]+\\[^\/\\:*?"<>|]+)(\\[^\/\\:*?"<>|]+)+(\.[^\/\\:*?"<>|]+)$
The url
http://www.regexlib.com/REDetails.aspx?regexp_id=425
But vb.net said there are invalid chars.
Dim a As String = "m:\twxt\.exe"
'The code below invalid.....
Dim b As String =
"^([a-zA-Z]\:|\\\\[^\/\\:*?"<>|]+\\[^\/\\:*?"<>|]+)(\\[^\/\\:*?"<>|]+)+(\.[^\/\\:*?"<>|]+)$"
MessageBox.Show(Regex.IsMatch(a, b))
Thank you