break url_pattern into string and regexp