Mixpanel Community Icon

Issues with regex_extract: Error using escape character in JS flavor

·
·

I'm trying to use regex_extract in a custom property, but I can't figure out what flavor of regex to use; I initially tried using the JS flavor, but I'm getting an error when trying to escape a dot using \. saying "invalid escape character"

  • Avatar of Vlad S.
    Vlad S.
    ·
    ·

    I got it to work by using [.] instead of \. but it would still be nice to know what works and what doesn't without having to do trial and error