"ksr" <k_*******@nospam.hotmail.com> wrote in
news:uY**************@TK2MSFTNGP12.phx.gbl:
in <path goes here> . I am new to regular expressions and looking for
some help in this regard.
Hope this clears the logic part of it. Please help me with this
Read a tutorial, it'll help you in the future.
<http://www.regular-expressions.info> is a decent one.
Try this for a regexp: (?:<(\\\\[-\d\w\\\s]+?)>)|(\\\\[-\d\w\\]+)
It should capture the UNCs you want. Note that if you put it into a C#
string, you need to double all backspaces (yes, there are quite a few of
them then).
--
Jouni Heikniemi,
jo********@heikniemi.net http://www.heikniemi.net/hc/ (blog)