I would just like to remove names like SDSDSDD.com, easdalkd.com within a sentence like amsdokajds.com says would just be says
I just want the domain name removed up to the next space
Basically what is happening now is that with this regex:
$patterns[4]= '/([a-zA-Z0-9\-]+\.[a-zA-Z]+)/i';
every string is getting deleted that starts with sadasdlj.com
It should be easy because the domain is the form XXXXXXXXX.XXX There is no www. beforehand or anything after the .com .net etc besides a space.