Ok I need help with thisone:
I need something that matches backwards I think?
Like “match backwards from ‘.no’ until first space”
I need to replace some text with links.
See examples of what im trying to accomplish below:
blabla hello www.test.no bla => blabla hello <a href="www.test.no">www.test.no</a> bla
blabla hello test.no bla => blabla hello <a href="test.no">test.no</a> bla
blabla hello http://www.test.no bla => blabla hello <a href="http://www.test.no">http://www.test.no</a> bla
Anyone?
I still don’t understand what exactly you need, because your example is not explained very well, but here goes:
Example code: http://ideone.com/H4iFD
EDIT: there you go:
Example code: http://ideone.com/3OLfI