I extracted this JSON from excel using PowerAutomate :
{"Actual Start Datetime":"Oct 31,2018 10:35:03","Reported Datetime":"Oct 31,2018 10:33:08","Actual Start Date {c}":"31-10-2018"};{"Actual Start Datetime":"Oct 31,2018 10:35:03","Reported Datetime":"Oct 31,2018 10:33:08","Actual Start Date {c}":"31-10-2018"};
BEAUTIFY:
{
"Actual Start Datetime":"Oct 31,2018 10:35:03",
"Reported Datetime":"Oct 31,2018 10:33:08",
"Actual Start Date {c}":"31-10-2018"
};
{
"Actual Start Datetime":"Oct 31,2018 10:35:03",
"Reported Datetime":"Oct 31,2018 10:33:08",
"Actual Start Date {c}":"31-10-2018"
};
I need to catch data using regex and then put it into collection.
To get only, for example, "Actual Start Datetime" I used :
ClearCollect(
colContent,
MatchAll(
varContent,
"""Actual Start Datetime"":""(?<ActualStartDatetime>[^""]*)"""
)
);
And it works, but I have troubles getting the rest at the same time, I tried using :
ClearCollect(
colContent,
MatchAll(varContent,
"""Actual Start Datetime"":""(?<ActualStartDatetime>[^""]*)""",
"""Reported Datetime"":""(?<ReportedDatetime>[^""]*)""",
"""Actual Start Date {c}"":""(?<ActualStartDatec>[^""]*)"""
)
);
And it doesn't work , the problem is probably in the way I use "," at the end of expression to separate columns I am not very familiar with regex, APPRICIATE ENY HELP