Is there a way to return the first word in a string?
For example, lets say a mailhook needs to check the first word in the subject line of an email.
e.g. “ABC100 - some more text”
how to extract ABC100 to use in a subsequent lookup?
I’ve tried using substring() however the length of the 1st word can vary. I’ve tried using the first(split()) to find the “-” and then grab the first word from the created array but I cannot rely on a “-” char being entered in the subject line… e.g. subject: “ABC100 some more text”
{{ first(split("ABC100 - some more text"; space )) }}
For more information, see string functions in the help center.
Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —