I have a strings of the form
"Look at this [website]{http://www.stackoverflow.com}
or at this [page]{http://www.google.com}"
and I want to parse them with PHP to
"Look at this <a href='http://wwwstackoverflow.com'>website</a>
or at this <a href='http://www.google.com'>page</a>"
How can I do this?
I though about using str_replace()but I dont know how to get the string between the brackets [].
Edit[26.08.2016]: The answer uses the PHP preg_replace method with Regular Expression. I didnt understand the given answer here, but it worked so I was happy But now I found this free tutorial that teaches you how to use Regular Expression. I found it very helpful. Especially when one wants to wrtie his own Regular Expression for a similar case.
[Title](http://example.com). He'd have to replace the{}with()to use that.preg_replace, I guess