Pattern:
#(?<!\img])(((http|ftp|https):\/\/)|a-z0-9.\-|www\.)[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#!]*[\w\-\@?^=%&/~\+#])?#i
As you can see I got the right modifiers - not like in the other questions. However its still not working giving the error:
preg_replace_callback(): Unknown modifier '!' in [..]
Whats the problem? I am out of the ideas. I'd appreciate any kind of help.