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?



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

WordFinder Unlimited
For clarity and excellence

WordFinder is the leading dictionary service that gives you the words you want anywhere, anytime. Access 260+ dictionaries from the world's leading dictionary publishers in virtually any device. Find the right word anywhere, anytime - online or offline.

More info »
PerfectIt consistency checker
Faster Checking, Greater Accuracy

PerfectIt helps deliver error-free documents. It improves consistency, ensures quality and helps to enforce style guides. It’s a powerful tool for pro users, and comes with the assurance of a 30-day money back guarantee.

More info »

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