02-08-2013, 08:39 AM
Macro GetPrices
Please, how to match euro or pound symbols?
I have tried flag 32, other patterns like \x82\xAC and nothing works, any ideas?
str s="Price1 - $3.25 Price2 - $3.50"
str pattern=".+ \- [$€£](\d.+) .+ \- [$€£](\d.+)"
ARRAY(str) arr
if(findrx(s pattern 0 0 arr)<0) out "not found"; end
out arr[1]
out arr[2]
Please, how to match euro or pound symbols?
I have tried flag 32, other patterns like \x82\xAC and nothing works, any ideas?