Test regex for url