Hello! I'd like to extract the path of a URL, remo...
# questions
w
Hello! I'd like to extract the path of a URL, removing all query string parameters. Working on regex101.com I figured out that the proper regex is this:
^https?:\/\/[A-Za-z0-9:.-]*([\/].*\/?)\?.*$
Nevertheless, when I enter it in Mixpanel I get the following error:
invalid escape character ?
What is the proper regex syntax to keep
/path1/path2
from
<https://subdomain.domain.com/path1/path2?courseid=ppl>
?