Hello.
I am trying to create a check that will look for numbers with spaces, commas and dots as thousand separators in the source text and then check if those numbers found in the source have been left without separators in the target text.
So far I’ve developed this:
Source: “([1-9]{1}[0-9]{0,2})=1\,(([0-9]{3}\,?)+)=2|([1-9]{1}[0-9]{0,2})=3\.(([0-9]{3}\.?)+)=4|([1-9]{1}[0-9]{0,2})=5[:space:]](([0-9]{3}[:space:]?)+)=6|([1-9]{1}[0-9]{0,2})=7([0-9]{3}+)=8”
Target: “@1[\,\.[:space:]]@2|@3[\,\.[:space:]]@4|@5[\,\.[:space:]]@6|@7[\,\.[:space:]]@8”
It seems to fulfill its purpose but for some reason it also looks up spaces, commas and periods without numbers neighboring them. Would anyone be able to determine why it looks for those spaces, commas and periods? Please remove the additional “]” bracket after “=5[:space]” — the text editor here goes crazy if I just leave “[:space:]”
Any help is much appreciated!
Robert