Regular Expressions: NOT operator in SDL Trados Studio 2019

It seems that the commonly used operators for NOT (^ and !) do not work in Trados SDL Studio filter.

Is this a bug or is there a different operator?

I suppose that the regex flavour is .Net.

Trados Studio Advanced Display Filter window showing an unsuccessful filter attempt with the NOT operator ''. The source text field contains '', with 'Regular Expression' checked. A message at the bottom indicates 304 of 305 segments found, implying the filter did not work as intended.



Generated Image Alt-Text
[edited by: Trados AI at 5:41 PM (GMT 0) on 28 Feb 2024]
emoji
Parents Reply
  • ok...sort of clear.  You showed us the Adanced Display Filter and a regex expression looking for a whitespace character followed by two stars... nothing to do with the NOT operator.

    However, to use NOT in regex the caret does work when applied correctly and this means inside square brackets.  The exclamation doesn't mean NOT in .NET regex at all.  It has some special meanings when used as part of some lookarounds and maybe something else I can't think of.

    The Community Advanced Display Filter has a very neat feature which can make it esier to exclude things as this can be qute tricky sometimes using regex in Studio.  It supports a reverse filter, so you can create an expression to find what you don't want and then reverse it.  Might be worth doing to things:

    1. give us an example of what you want to achieve
    2. try the Community version of this display filter: appstore.sdl.com/.../

    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