There is a need to get all the relative paths in the HTML markup. Made up a similar regular expression:
@"(?:src|href)=""([^#](?!http[s]*[:])[^/]{2}(([a-z0-9-.]*/)*)([a-z0-9-.]*?[a-z0-9-]*!?.[az]{2,4})(?!#)\w*\W*)""" In general, it works as it should if you use the same, for example in JavaScript. Anchors like #yakor ignored correctly, but there is a problem with anchor links like index.html#yakor in C #, they are not just ignored.
Designed in this calculator, but it's for javascript.
\#or like this\x23- nick_n_a