Wrote this regular season:
/<a(.*)href=\"http:\/\/url1(.*)\">(.*)<\/a>/s
Everything is good, but if there is a link in the text before url1, then obviously both links will be eaten. For example:
<a href="http://url0">url0</a> text <a href="http://url1">url1</a>
[ссылка](http://example.com)
- MichaelPak