regular expression to get text between square brackets in Word

Hi,

I have used this regular expression \[(.*?)\] to get text within square brackets in Excel and it works (text within square brackets is displayed as tag).

I have tried the same regular expression with the new Word filetype in Trados 2021 and it does not work

In document structure information I've used paragraph, it this correct?

Parents
  • It depends. Try to use some more structure elements, like list item and so on. It might be, that your text is not in paragraph.

    BTW, just for tagging you could use this \[[^]*?\]

    _________________________________________________________

    When asking for help here, please be as accurate as possible. Please always remember to give the exact version of product used and all possible error messages received. The better you describe your problem, the better help you will get.

    Want to learn more about Trados Studio? Visit the Community Hub. Have a good idea to make Trados Studio better? Publish it here.

Reply
  • It depends. Try to use some more structure elements, like list item and so on. It might be, that your text is not in paragraph.

    BTW, just for tagging you could use this \[[^]*?\]

    _________________________________________________________

    When asking for help here, please be as accurate as possible. Please always remember to give the exact version of product used and all possible error messages received. The better you describe your problem, the better help you will get.

    Want to learn more about Trados Studio? Visit the Community Hub. Have a good idea to make Trados Studio better? Publish it here.

Children