+7 (831) 262-10-70

+7 (831) 280-82-09

+7 (831) 280-82-93

+7 (495) 545-46-62

42 B, ul. B. Pokrovskaya, Nizhny Novgorod, Russia, 603000

Monday to Friday 09:00 to 18:00 (GMT+3)

Using regular expressions in translation and localization

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
^[^А-я^\r^\n]+$ ->  
  <- ^[^A-z^\r^\n]+$

Replace decimal separator in numbers

925.10   925,10
([0-9])[.]([0-9]) -> \1[,]\2
\1[.]\2 <- ([0-9])[,]([0-9])

Add commas comma to separate groups of thousands

3421876925   3,421,876,925
[0-9](?=(?:[0-9]{3})+(?![0-9])) -> $&,

Change date format

15.01.2007   15/01/2007
([0-9]{1,2})[\.]([0-9]{1,2})[\.]([0-9]{2,4}) -> \1/\2/\3
\1/\2/\3 <- ([0-9]{1,2})[\/]([0-9]{1,2})[\/]([0-9]{2,4})

Search for capitalized words

Contract \<[A-Z][a-z]+\>

Useful materials:

A brief description of regular expressions:

Using regular expressions in MemoQ:


More than 10 years in the industry

We have translated almost a million pages, being called upon to solve linguistic problems of varying complexity, often to extremely tight deadline.

We are one of the Top-40 largest translation companies in Russia

This ranking is according to the site https://translationrating.ru using data for 2015.

We work to provide you with the greatest flexibility

We build relations with customers with an individual approach; our desire is to find and fully meet their needs.

Quality and privacy are in accordance with ISO 17100

We understand that high quality and our excellent reputation are our main competitive advantages.

Dynamic innovation

We develop software, participate in projects of professional organizations, and support law-making initiatives.


Alba Translating Company entered the TOP-5 best employers list


Alba Translating Company launched a separate division for audiovisual translation


Interpreters of ALBA Translating Company completed their work at Air Show MAKS