Does anyone have experience using trim when multiple values match the trim criteria?
Currently it defaults to the last match value and I need to use the first match value
For example if my data looks like the below:
To: a
From: 1
To: b
From: 2
To: c
From 3
trim(first(split(last(split(outputs('my_string'),'To:')),'From:')))
The above will return c
However I want to return always the first match, which is a
The number of results might change, but regardless I would like trim to always use the first match in the string rather than the last.

Report
All responses (
Answers (