Is there any way to split all merged words but www and e-mail addresses?
I have regexp
preg_replace("/(\.)([[:alpha:]])/", "\\1 \\2", "www.google .com
any,merged.word s mymail@domain.c om")
it give me incorrect result:
www. google. com any, merged. words mymail@domain. com
i need result
www.google.com any, merged. words mymail@domain.c om
in my case, all web addresses has www. or http:// in beggining of string
and email of course @ inside string
is it possible to write regexp like this?
I have regexp
preg_replace("/(\.)([[:alpha:]])/", "\\1 \\2", "www.google .com
any,merged.word s mymail@domain.c om")
it give me incorrect result:
www. google. com any, merged. words mymail@domain. com
i need result
www.google.com any, merged. words mymail@domain.c om
in my case, all web addresses has www. or http:// in beggining of string
and email of course @ inside string
is it possible to write regexp like this?
Comment