gnomer wrote: » Sorry, but what do you mean by "guarantee the input"? Thanks for all your help!
forbairt wrote: » You've spent less than an hour ? on it ? yes substr may do the trick if you can guarantee the input
gnomer wrote: » I'm sorry but I can't get my head around those! could I use if substr to get the first few characters and see if it is http://www. ? Also would that be any slower?
gnomer wrote: » Lol, sorry dude but I don't fully understand what you mean... I think I will have to search the net for somebody else who fixed this...
gnomer wrote: » Also how do I use regexp?
forbairt wrote: » regexp is pretty powerful you can do whatever you want with it. Take the first hit of www as in match for http://www. all other www's would be left happy.