Check currencies in source and target

Is there any chance to create a regular expression that checks if several currencies have been used in the source as well as in the target?

For example, I would like to check whether “USD”, “GBP”, “EUR”,… appear in the source and in the target.

I wanted to use this regular expression:
Source: “GBP” OR “USD”
Target: -“GBP” OR -“USD”
PowerSearch ON
Regular Expression

But it seems it does not work.
any help would be really appreciated.

The canned ALLUPPERCASE mismatch QA check can be of help here as it will report any missing or extraneous sequence of uppercase letters.

If you want to do it with Regex, you can use this:

  • Source: ((USD|GBP|EUR))=1
  • Target: -@1
  • Case sensitive: Enabled
  • PowerSearch: Enabled
  • RegEx: Enabled

What the above does is first to look for any of the 3 currencies in the segment and when found, store it in variable 1. Then it checks if the value stored in variable 1 is not found in target with Xbench PowerSearch NOT (minus sign).

Thank you so much!!! I do work a lot with finance texts and this will be really helpful.
I’ll check this and let you know if it works :slight_smile:

Update: it worked!!!

I tried this expressions (replacing the currency with other strings) and it results in an error (source term error - incomplete expression). The expression in the source line works just the combination does not. Where is my mistake?
I used the regular expressions and PowerSearch.

When using variables, the search string must be placed between doubles quotes.

Source: "(Mary|John)=1"
Target: -@1
Regular Expressions and PowerSearch enabled.

The quotation marks did the trick. (It might be helpful to add this to the Regular Expressions Help )
Thanks!!!