Using regular expressions in Transit to search and replace
Thread poster: Proudhon

English to Russian
Nov 15, 2011


Is there how to find and replace a certain type of strings using regular expressions? There’s quite a number of standard strings in the files I’m translating at the moment. These strings are based on the following structure:

The function returns , e.g.:

The getAssessmentPeriodLabelValues() function returns a list of assessment period LabelValueBeans

I wanted to leave the and replace the text before and after these characters

I used the following search and replace arguments:

Find what: The\s& function\sreturns
Replace with: \s&, where & stands for

Which, naturally, resulted in just that – ampersands instead of the characters I’d like to remain there.

Is it actually possible to find and replace in Transit in sed or awk style, or functionally similar?


Direct link Reply with quote

To report site rules violations or get help, contact a site moderator:

Moderator(s) of this forum
Maya Gorgoshidze[Call to this topic]

You can also contact site staff by submitting a support request »

Using regular expressions in Transit to search and replace

Advanced search

SDL Trados Studio 2017 Freelance
The leading translation software used by over 250,000 translators.

SDL Trados Studio 2017 helps translators increase translation productivity whilst ensuring quality. Combining translation memory, terminology management and machine translation in one simple and easy-to-use environment.

More info »
SDL Trados Studio 2017 only €415 / $495
Get the cheapest prices for SDL Trados Studio 2017 on

Join this translator’s group buy brought to you by and buy SDL Trados Studio 2017 Freelance for only €415 / $495 / £325 / ¥60,000 You will also receive FREE access to our getting started eLearning program!

More info »

  • All of
  • Term search
  • Jobs
  • Forums
  • Multiple search