grrr..regular expression.. i hate it..what ever... ok your regex is to short.. for http://google.com/asdkjhkajhsd/asdas/asdg56df/56456dfhhfgh/ i find only http://google.com this code snippet find this url but does not work in ubot... why ?? ^([a-z]+:\/\/)?([a-z]([a-z0-9\-]*\.)+([a-z]{2})|(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}[0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(:[0-9]{1,5})?(\/[a-z0-9_\-\.~]+)*(\/([a-z0-9_\-\.]*)(\?[a-z0-9+_\-\.%=&]*)?)?(#[a-z][a-z0-9_]*)?$ where is the problem ? or here ((http(s?))\:\/\/){1}\S+ p.s.: i hate it