Save the date! Join us on October 16 for our Product Ops launch event. Register here.
Oct 26, 2022 01:58 PM
Hi can someone help me to extract the TEXT3 after the second " - "
I’ve tried this formula but haven’t been able to reference the second " - "
IF({Engineer + Seniority + Direct Manager}, REGEX_EXTRACT({Engineer + Seniority + Direct Manager}, “(?:\- )(.*)”))
Text sample: TEXT1 - TEXT2 - TEXT3
Oct 26, 2022 11:51 PM
Hi,
i’m too sleepy to regex now, at morning
so i crafted this.
also, you can change a number (2) to cut after third, fourth occurence etc.
RIGHT(Name,-FIND('CUT',
SUBSTITUTE(Name,'-','CUT',2)
)+LEN(Name))
Oct 27, 2022 01:38 AM
If it’s always one word at the end, Regex would work like this:
\w+$
$ matches the end of the string. If there would always be two words, Regex looks like this:
\w+\s\w+$
and if it can be both, you can use an alternation (“|”) in between those two:
\w+\s\w+$|\w+$
Let me know if that works!
Oct 27, 2022 06:36 AM
Thank you!! It worked perfectly! :slightly_smiling_face: