Regex fix

Now the correct regex variable is used for url check instead of a fixed
regex.