HI, i’m trying to extract an email address using expression builder using a formula i’ve found on this forum (This post)
substring('{{ticket.description_text | sanitize_html}}',indexOf('{{ticket.description_text | sanitize_html}}', 'Work email:',0)+length('Work email:'), indexOf('{{ticket.description_text | sanitize_html}}', Status', indexOf('{{ticket.description_text | sanitize_html}}', 'Requestors:',0)) )
I get error “missing )”
The closest I got was
{{ticket.description_text}},
indexOf({{ticket.description_text}}, 'Work email:', 0) + length('Work email:'),
length({{ticket.description_text}}) - (indexOf({{ticket.description_text}}, 'Work email:', 0) + length('Work email:'))
)
produced john@doe.c where the email address in full was john@doe.com
can anyone help please I feel I am so close