Improved regex url validation