I need to preg_match html to add link to text. Currently use:
'![a-z][a-z-]+://!i'
Example:
some text mylink.com
Become
some text <a href="mylink.com">mylink.com</a>
And that is ok. But I have already 'a href' in first code and need to skip. I need to change this preg_match to detect link with first empty space. Maybe:
'!^[a-z][a-z-]+://!i'
but this not work, any help?