Using regular expressions in Transit to search and replace
Thread poster: Proudhon
Proudhon
Proudhon
English to Russian
Nov 15, 2011

Hello,


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
... See more
Hello,


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?


Cheers
Collapse


 


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






Trados Studio 2022 Freelance
The leading translation software used by over 270,000 translators.

Designed with your feedback in mind, Trados Studio 2022 delivers an unrivalled, powerful desktop and cloud solution, empowering you to work in the most efficient and cost-effective way.

More info »
Wordfast Pro
Translation Memory Software for Any Platform

Exclusive discount for ProZ.com users! Save over 13% when purchasing Wordfast Pro through ProZ.com. Wordfast is the world's #1 provider of platform-independent Translation Memory software. Consistently ranked the most user-friendly and highest value

Buy now! »