There is a string
Текст >>123 текст и ещё текст How to select >> 123 from here (after the arrows are only numbers) and replace for example with <a href=\"#"> here what is highlighted </a>
So I tried to do:
preg_replace("/>>([0-9])<br \/>/Usi","<a href=\"#\\1\">>>\\1</a><br \/>",$str)
<br \/>? It is because of this that “it only works if there is a transfer after the line” - lolbas