Hi community,
I need assistance regarding the following issue:
If i need to parse values from unstructured emails and past these values into an excel table.
Every email that comes in can have the text I am searching for in different locations and the text itself could be stuck to other characters.
For example:
Email 1: "please re-evalue the version you gave us, 20250313142905 again"
I would want to paste 20250313142905 in the excelsheet as a value (column "version")
I have a solution to this (thanks Chriddle) from the following question in the forum:
HOWEVER. This solution only works in specific cases.
The current expression to parse the string is [please see forum entry above]:
split(
xpath(
xml('<insignificant/>'),
concat(
'translate("',
replace(
replace(
outputs('Compose'),
'"', ' '
),
decodeUriComponent('%0A'), ' '
),
'", ".,;:!,-", " ")'
)
),
' '
)
@and(
startswith(item(), '202'),
equals(length(item()), 14),
isInt(item())
)
I tested the following cases where the value is touching/stuck to anything else
Example 1: 20250313142905+00
Example 2: [space bar][space bar][space bar][space bar]20250313142905
Example 3: 20250313142905Ver
Etc
These don't work and my excel sheet does not get populated.
Can someone please assist?