How to find/replace text with brackets in Trados 2015
Thread poster: Samuel Murray

Samuel Murray  Identity Verified
Netherlands
Local time: 17:27
Member (2006)
English to Afrikaans
+ ...
Jun 12

G'day everyone

I need to replace "(foo" with "(bar" in a Trados 2015 project. However, when I try to add "(foo" to the find/replace dialog in Trados, it shows up in red, and the "find" and "replace" buttons remain grey. Adding e.g. a backslash before the bracket does make those buttons active, but then the search finds nothing. How can I perform this replacement in Trados 2015?

Thanks
Samuel


Direct link Reply with quote
 

Soonthon LUPKITARO(Ph.D.)  Identity Verified
Thailand
Local time: 23:27
Member (2004)
English to Thai
+ ...
Removing " " ? Jun 12

Samuel Murray wrote:

I need to replace "(foo" with "(bar" in a Trados 2015 project. However, when I try to add "(foo" to the find/replace dialog in Trados, it shows up in red, and the "find" and "replace" buttons remain grey. Adding e.g. a backslash before the bracket does make those buttons active, but then the search finds nothing. How can I perform this replacement in Trados 2015?


I am recently familiar with Google Search. I find that adding " " before and after a string gives special accents to search function.
Removing " " will do the job, won't it?

Dr. Soonthon Lupkitaro
Bangkok


Direct link Reply with quote
 

Samuel Murray  Identity Verified
Netherlands
Local time: 17:27
Member (2006)
English to Afrikaans
+ ...
TOPIC STARTER
I do not use quotes in my search Jun 12

Soonthon LUPKITARO(Ph.D.) wrote:
Samuel Murray wrote:
I need to replace "(foo" with "(bar" in a Trados 2015 project.

Removing " " will do the job, won't it?


Let me rephrase:

I need to replace this:

(foo

with this:

(bar

in a Trados 2015 project.


Direct link Reply with quote
 

Ricki Farn
Germany
Local time: 17:27
Member (2005)
English to German
Use "use regular expressions" Jun 12

and escape the bracket by putting a backslash in front of it.

escape = make it literal, not make it run away

[Edited at 2017-06-12 09:50 GMT]


Direct link Reply with quote
 

NeoAtlas
Spain
Local time: 17:27
English to Spanish
+ ...
ticking and unticking… Jun 14

Sometimes I found out that it helps just ticking and unticking the Use check box.

… Jesús Prieto …


Direct link Reply with quote
 

Riccardo Schiaffino  Identity Verified
United States
Local time: 09:27
Member (2003)
English to Italian
+ ...
\(foo $1bar Jun 15

Samuel Murray wrote:

Soonthon LUPKITARO(Ph.D.) wrote:
Samuel Murray wrote:
I need to replace "(foo" with "(bar" in a Trados 2015 project.

Removing " " will do the job, won't it?


Let me rephrase:

I need to replace this:

(foo

with this:

(bar

in a Trados 2015 project.


\(foo in the search field

and

$1bar in the replace field

(checking the "regular expressions" box)

should work.

[Edited at 2017-06-15 18:06 GMT]


Direct link Reply with quote
 

Nora Diaz  Identity Verified
Mexico
Local time: 09:27
Member (2002)
English to Spanish
+ ...
A small edit Jun 16


\(foo in the search field

and

$1bar in the replace field

(checking the "regular expressions" box)

should work.



For this to work as intended, the escaped bracket, \(, should be enclosed in brackets itself, so that the backreference $1 in the Replace field may find something to refer to. Otherwise, $1 will be inserted literally in the Replace field.

So in the Find field:

(\()foo

and in the Replace field:

$1bar


Direct link Reply with quote
 

Riccardo Schiaffino  Identity Verified
United States
Local time: 09:27
Member (2003)
English to Italian
+ ...
You are right, of course Jun 17

Nora Diaz wrote:


\(foo in the search field

and

$1bar in the replace field

(checking the "regular expressions" box)

should work.



For this to work as intended, the escaped bracket, \(, should be enclosed in brackets itself, so that the backreference $1 in the Replace field may find something to refer to. Otherwise, $1 will be inserted literally in the Replace field.

So in the Find field:

(\()foo

and in the Replace field:

$1bar


You are right of course...


Direct link Reply with quote
 


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


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

How to find/replace text with brackets in Trados 2015

Advanced search







CafeTran Espresso
You've never met a CAT tool this clever!

Translate faster & easier, using a sophisticated CAT tool built by a translator / developer. Accept jobs from clients who use SDL Trados, MemoQ, Wordfast & major CAT tools. Download and start using CafeTran Espresso -- for free

More info »
Déjà Vu X3
Try it, Love it

Find out why Déjà Vu is today the most flexible, customizable and user-friendly tool on the market. See the brand new features in action: *Completely redesigned user interface *Live Preview *Inline spell checking *Inline

More info »



Forums
  • All of ProZ.com
  • Term search
  • Jobs
  • Forums
  • Multiple search