In general, the parsing of the link looks something like this (on the assurance of the Internet):
/<a [^<>]*href=[\'"]([^\'"]+)[\'"][^<>]*>(((?!/si
But in my case it gives an error: Warning: preg_match () [function.preg-match]: Compilation failed: missing) I was looking for other ways, but everyone comes with errors or does not look for a link. In my case, the link is in the form (quotes may be different or not at all, page, id - abstraction):
<a href="/page?id=123">подробнее</a>
So how to parse?