garvin tells me, better to post in the english forums:
the markup makes from
Code: Select all
http://mueller.example
<a href="http://www.mueller.example" target="_blank"><a href="http://www.mueller.example" target="_blank">http://www.mueller.example</a></a>I think, the problem is here, the double regex-code:
Code: Select all
'SearchArray'=>array(
"/([^]_a-z0-9-=\"'\/])((https?|ftp|gopher|news|telnet):\/\/|www\.)([^ \r\n\(\)\^\$!`\"'\|\[\]\{\}<>]*)/si",
"/^((https?|ftp|gopher|news|telnet):\/\/|www\.)([^ \r\n\(\)\^\$!`\"'\|\[\]\{\}<>]*)/si"
Code: Select all
([^]_a-z0-9-=\"'\/])and something else:
The code replaces www.example.com, too. But it does not add http:// to the href="", so
href="http://mein-blog.example/www.example.com" is the result
And: something else would be nice, what I found in other blog-systems:
http://www.example.com should become
<a href="http://www.example.com">www.example.com</a>, without the http:// in the link-text (not in the href of course)!