Tips for Regex with Trados

The SDL Trados Studio QA Checker allows you to specify regular expressions (Regex) to use in order to find particular string patterns in the document. Here are some Regex uses I found during the course:

1 – (\d{0,2})\/(\d{0,3})\/(\d{2,4})

EN to PT date checker: The “Find and Replace” feature allows us to change dates from the  English mm/dd/yy format to the Portuguese dd/mm/yy format.

2 – \d+\,\d+

EN to PT number checker: numbers in the thousands are formatted according to the Portuguese rules (1,000 to 1.000).

3 – .+\.\d+

Another EN to PT number checker: decimal numbers in the original English text which have not been replaced by commas in the Portuguese target text (3.0 to 3,0).

4 – \”\.

Period after quotes: In Portuguese, if a sentence starts and begins with quotes, the period must stay within the quotation mark.

5 – \(\d{3,}\) \d{3,}\-\d{4}

Telephone number checker – In Portuguese, the standard for phone numbers is (xx) xxxxx-xxxx, while in the US, the standard for phone numbers is (xxx) xxx-xxxx.