QA Checker "Grouped search expression - report if source matches but not target"

In the documentation regarding QA Checker "Grouped search expression - report if source matches but not target," there is a note stating the following:

Note: The target RegEx cannot contain any special escape characters and will act exactly as pattern for replace function of .NET RegEx implementation.

Could someone tell me where "pattern for replace function of .NET RegEx implementation" is specifically documented?

I see that the documentation has examples such as

source - (\b\d+\b)
target - \b$1\b

which seems to imply that "\b" is accepted. What other escapes can be used?

Thanks in advance.

Parents
  • Hi 

    The "Grouped Search" expression currently works by supporting the use of a back reference only.  So if you wanted your expression to work you would use this:

    RegEx source: (?<![0-9])([2-9][\d]+)(?![0-9])

    RegEx target: $1

    Anything else is taken literally.  There is a change to this due in the next CU that will allow any regex construct to be used as regex, but for now you can only use the back reference.

    I would also note that your expression excludes numbers beginning with "1", so these would not be found for example:

    There are 11230 files

    There are 149 files

    But perhaps that's ok for your target text?  Just in case maybe something like this might be better?

    ([2-9]\d+|[1-9]\d{2,})

    $1

    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

Reply
  • Hi 

    The "Grouped Search" expression currently works by supporting the use of a back reference only.  So if you wanted your expression to work you would use this:

    RegEx source: (?<![0-9])([2-9][\d]+)(?![0-9])

    RegEx target: $1

    Anything else is taken literally.  There is a change to this due in the next CU that will allow any regex construct to be used as regex, but for now you can only use the back reference.

    I would also note that your expression excludes numbers beginning with "1", so these would not be found for example:

    There are 11230 files

    There are 149 files

    But perhaps that's ok for your target text?  Just in case maybe something like this might be better?

    ([2-9]\d+|[1-9]\d{2,})

    $1

    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