+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:
http://www.pnotepad.org/docs/search/regular_expressions/

Using regular expressions in MemoQ:
https://help.memoq.com/current/en/Places/regular-expressions.html

ADVANTAGES OF USING ALBA’S SERVICES

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.

31/07/2017

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

08/03/2017

ALBA Translating Company joined the European Language Industry Association (ELIA)

03/01/2017

On 20 December 2016, the Federation Council considered a project proposed by the Union of Translators of Russia on the establishment in Russia of an institute of court (sworn) translators and interpreters.