Using Mixpanel's custom property regex_extract function (which uses the PCRE2 engine), you can extract "project" from the URL with the following formula:
regex_extract("https://eu.mixpanel.com/project/", "\/([^\/]+)\/?$", 1)How it works:
\/([^\/]+)\/?$ matches the last path segment before an optional trailing slash at the end of the URL.
Capture group 1 returns the matched text: "project".
Alternatively, if you want a case-insensitive match specifically for the word "Project":
regex_extract("https://eu.mixpanel.com/project/", "(?i)(project)", 1)These follow the regex_extract(haystack, pattern, <optional capture group#>) syntax supported in Mixpanel custom properties. [Custom Properties Functions]