Hi - any .net regex peeps out there
i have this regex to update mapped drives with UNC paths
(d[:|]{1}[\\\/]{1}))(?:[^\\n]\w)
which using expresso successfully gets d:\ or d|\ back with the exception of some d:\n' newline bits here and there.
in .net when using the replace method the non capturing group is captured and those chars are replaced !!
ie: d:\blah\filename.zzz
becomes: \\name\share\ah\filename.zzz
does .net handle non capturing groups?? i cant find great doco on how to do named replacing with .net so am trying simple replace.
i have this regex to update mapped drives with UNC paths
(d[:|]{1}[\\\/]{1}))(?:[^\\n]\w)
which using expresso successfully gets d:\ or d|\ back with the exception of some d:\n' newline bits here and there.
in .net when using the replace method the non capturing group is captured and those chars are replaced !!
ie: d:\blah\filename.zzz
becomes: \\name\share\ah\filename.zzz
does .net handle non capturing groups?? i cant find great doco on how to do named replacing with .net so am trying simple replace.