Using regular expressions in translation and localization
Regular expressions is a formal language based on wildcard characters and used to define search patterns. Regular expressions are supported by most modern text editors and CAT-tools, including Microsoft Word, Notepad++, SDL Trados Studio, MemoQ, XBench. While in word processors regular expressions are only used to search and replace text, in CAT-tools they can also change segmentation rules or define what exactly will be considered as tags.
Many translators have the opinion that regular expressions is something really hard to master. In fact, anyone can learn them, and using regular expressions can save hours of routine work. In this article, we have collected examples of how regular expressions can be useful to a translator.
Delete text typed in Latin/Cyrillic characters
|Delete text typed in Latin characters||Delete text typed in Cyrillic characters|
Replace decimal separator in numbers
Add commas comma to separate groups of thousands
Change date format
Search for capitalized words
A brief description of regular expressions:
Using regular expressions in MemoQ: