Regular Expressions on QA Checker 3.0

Hi, I want to check the words that contains no-break spaces in French, but that space is a normal space in English. I used to add the words that contains the space difference to the "Trademark Check" section but it shows as mistakes when QA Checker has run.

The target texts are aaa aaa in English, which contains a normal space, and aaa aaa in French, which contains a no-break space among two words. I have described the rule in the "Regular Expressions" section as (aaa[\s| ]aaa) for the RegEx source and $1 for the RegEx target. I selected "Grouped search expression - report if source matches but not target". This rule didn't work properly. The words pair was detected as a warning, the source matched but the target didn't match.

Could anyone tell me how I should describe the rule that the word is correct if either normal or no-break spaces contain among the specific words?

Best regards,

Parents Reply
  • ok.  The first thing is your expression is generally incorrect because you are simply validating that the source has a normal space, and the target doesn't.  So you get a warning.

    You need to be more specific and if you must use a back reference then something like this:

    (aaa)(?:\x20|\xA0)(aaa)

    $1\xA0$2

    Grouped Search Expression - report if source matches but not target

    I only added this part (?:\x20|\xA0) instead of just \x20 because you seemed to have used something in the source and I was guessing you tried to show a normal space and a non-breaking space... wasn't sure.

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

Children