Hi all,
I'm having problem in my workflow, How can I extract the numbers from string using regex.
This is my sample string:
Total : 11,274.75 762,350.34 0.00 No of Policies 0 1
I'm using this IIF Statement:
IIF(Contains([New Field], "Total :"), REGEX_Replace([New Field], "[\d,]", ""), [New Field])
The output is this:
Total : . . . No of Policies
But when I use this IIF Statement:
IIF(Contains([New Field], "Total :"), REGEX_Replace([New Field], "[\D,]", ""), [New Field])
My output is this:
11274757623503400001
The result is number only.
But my desired output is something like this:
11,274.75 762,350.34 0.00 No of Policies 0 1
Just remove the Total : word.