create_regex to return compiled regex
Tests for URLs