Improve url regex

Should be self-explanatory.