Hi! I'm looking for an explanation of how regular expressions work in the PHP preg_replace() function.
I am looking for a way to take a word/URL from a long text and encapsling it with HTML code. For example
http://www.webaid.se to <a heref="http://www.webaid.se">www.webaid.se</a>
or
[img="test.png" "an image"] to
<img src="text.png" alt="an image" />
Where can I find documentation about this, or even better, can someone explain it roughly to me right away?