Hi all,
We have a client that wants us to keep prices exactly as per source, not even adapting price format. For instance, for prices such as “US$2,500”, “£500” or “¥100”, they want those prices stay exactly the same. Since our usual inclination would be to at least adapt format to “2500 US$”, “500 £” and “100 ¥”, respectively (following previous examples), we created the following check:
Source: "(\$|£|¥|€)([0-9]{1,3},)?([0-9]{1,3})=1"
Target: -@1
PowerSearch: ON
Regex: ON
For some reason we do not understand, this search does not work, whereas we have other similar checks with variables that work perfectly. We tried performing only the source search and it works (if finds in source strings like “US$2,500”, “£500” or “¥100”).
For the time being, we used a workaround changing the "-@1" in target for -"(\$|£|¥|€)([0-9]{1,3},)?([0-9]{1,3})=1". However, this is far from ideal, since it finds prices with different format, but would not spot if there was a mismatch in prices.
Agreed, one could argue that the Numeric Mismatch check would already do the job for that last purpose, but we are still puzzled about why our original check does not yield any results.
Could anyone please help us see what are we doing wrong?
Kind regards,
Manuel