Regex QA check - Grouped Search Expressions

Hi,

I have a project containing many occurrences of this type of pattern (any letter A-Z, and a +/- sign in brackets; with multiple pairs of this pattern per segment):

" ... between A(+) and B(-) and between F(+) and C(-)"

I'm using Studio 2019 and I've tried to set up a Regex check in the QA checker, using a Grouped Search Expression (source matches but not target), but I get an error message and don't know why.

Here's what I've tried:

Source (all of these patterns work when I test them in the search box of the Community Advanced Display Filter and in a third-party regex checker):

  • [A-Z]\(\W\)
  • [A-Z]\(.\)
  • [A-Z]\([\+-]\)

Target:

  • $0

However, when I confirm a segment with this pattern in, I get this error message:

Error dialog box in Trados Studio with a red X icon indicating a parsing error for the regex pattern 'A(+)' and a message 'Quantifier x,y following nothing.' with options for Knowledge Base and Community.

Can anyone see what I'm doing wrong here?

Thanks,

Hayley



Generated Image Alt-Text
[edited by: Trados AI at 4:33 AM (GMT 0) on 5 Mar 2024]
emoji
Parents Reply Children