My Regex can't find the content correctly

Hi,

I'm using regex to filter content but can't find exactly what I want

Teset contents

Source Target
<&****> <&****>
<&any4> <&any5>
<&qazwe> &<qazw>$1
&<wer> &<<<<
&any4; &any4;
&char; and &stri; &char; and &stri;
&prod-nx; &prod-nx;
&adfsadf; &adfsadf;

Regex

To find segments where Source and Target have the same <content>

Source : (\<.*?\>)

Target : $1

Trados Studio interface showing an empty project with file paths and a filter settings panel with regex input for source and target.

To find segments where Source and Target have the same &content;

Source : (\&.*?\;)

Target : $1

Trados Studio interface displaying a list of content with special characters and corresponding target content, alongside filter settings with regex input.

As you can see, <> is not working.

Besides, how can I find segments that have <content> in Source but not in Target?

^[$1] or [^$1] dosen't work.



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