https://www.proz.com/forum/office_applications/42708-help_on_find_replace_needed.html

Help on Find-Replace needed
Thread poster: Uldis Liepkalns
Uldis Liepkalns
Uldis Liepkalns  Identity Verified
Latvia
Local time: 17:13
Member (2003)
English to Latvian
+ ...
Feb 16, 2006

Hi all, I have to change the order of symbols in the translation: (D4 fig.) to (fig. D4).

Figure numbers of course differ and there are thousands of changes to make. Is there some way to make Search-Replace function to do it?

Uldis


 
Patricia Fierro, M. Sc.
Patricia Fierro, M. Sc.  Identity Verified
Ecuador
Local time: 09:13
English to Spanish
+ ...
Feb 16, 2006



[Edited at 2006-02-17 16:26]


 
Endre Both
Endre Both  Identity Verified
Germany
Local time: 16:13
English to German
Search sequence Feb 16, 2006

Hi Uldis,

if you only have one (uppercase!) letter and one digit in each name, try this:

Search:
([A-Z][0-9])( )(fig.)

Replace:
3\2\1

For one letter and one or more digits (e.g. D44 fig.):
([A-Z][0-9]@)( )(fig.)

For one or more letters and one or more digits (e.g. ABC33 fig.):
([A-Z]@[0-9]@)( )(fig.)

In every case you need to tick the "With wildcards" box.

If you have lowercase lett
... See more
Hi Uldis,

if you only have one (uppercase!) letter and one digit in each name, try this:

Search:
([A-Z][0-9])( )(fig.)

Replace:
3\2\1

For one letter and one or more digits (e.g. D44 fig.):
([A-Z][0-9]@)( )(fig.)

For one or more letters and one or more digits (e.g. ABC33 fig.):
([A-Z]@[0-9]@)( )(fig.)

In every case you need to tick the "With wildcards" box.

If you have lowercase letters too, try [a-z] instead of [A-Z].

Endre

[Edited at 2006-02-16 15:49]
Collapse


 
Riccardo Schiaffino
Riccardo Schiaffino  Identity Verified
United States
Local time: 08:13
Member (2003)
English to Italian
+ ...
Use MS Word Wildcards Feb 16, 2006

Endre already gave some examples. You can find more information and examples on MS Word "wildcard" searches (which are actually scaled-down regular expression searches) in an article of mine (How To Use Wildcards...), and still more here

[Modificato alle 2006-02-16 15:59]


 
Jaroslaw Michalak
Jaroslaw Michalak  Identity Verified
Poland
Local time: 16:13
Member (2004)
English to Polish
SITE LOCALIZER
Only wildcards... Feb 16, 2006

Patricia Fierro, M. Sc. wrote:

7. Click on the "Replace with" field
8. Enter "Fig." in the "Replace with" field
9. Click on "Special"
10. Click on "Any digit"



Have you actually tried this? There is no "Any digit" option in the "Replace with" field (obviously - you need to specify which digit to replace). You can put "Found text", but this gives the whole string, which would not help much.

Endre's method, on the other hand, should work quite well.


 
mk_lab
mk_lab  Identity Verified
Ukraine
Local time: 17:13
Member (2004)
English to Russian
+ ...
And do it slowly... Feb 16, 2006

And do it slowly, because you are in risk to loose an idea.

 
Uldis Liepkalns
Uldis Liepkalns  Identity Verified
Latvia
Local time: 17:13
Member (2003)
English to Latvian
+ ...
TOPIC STARTER
Thanks a lot Feb 16, 2006

to you all!

Uldis


 
Jo Macdonald
Jo Macdonald  Identity Verified
Spain
Local time: 16:13
Italian to English
+ ...
Using Search-Replace Feb 16, 2006

Hi Uldis,

Here's something I posted recently on using Search-Replace
http://www.proz.com/post/285966#285966


 
Robert Tucker (X)
Robert Tucker (X)
United Kingdom
Local time: 15:13
German to English
+ ...
Maybe with a macro Feb 16, 2006

I use OpenOffice but probably something similar should work in Microsoft Word.

If you record a macro something like:

Have the cursor at the beginning of document
Start recording macro
Do ctrl-F and type “ fig.)” in the find box and click find
Hit delete
Close find dialogue
Click back into document
Type “)”
Do ctrl-F and type “(“ in the find box and check backward search and click find
Close find dialogue
... See more
I use OpenOffice but probably something similar should work in Microsoft Word.

If you record a macro something like:

Have the cursor at the beginning of document
Start recording macro
Do ctrl-F and type “ fig.)” in the find box and click find
Hit delete
Close find dialogue
Click back into document
Type “)”
Do ctrl-F and type “(“ in the find box and check backward search and click find
Close find dialogue
Type “(fig. “
Stop recording macro and save

I don't know how to run a macro repeatedly automatically except that it is probably possible to edit the Basic code to do so.

[Edited at 2006-02-17 11:51]


Run Macro Repeatedly:

http://www.wordboosters.com/wboverview.htm



[Edited at 2006-02-17 13:35]
Collapse


 


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


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

Help on Find-Replace needed






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 »
Protemos translation business management system
Create your account in minutes, and start working! 3-month trial for agencies, and free for freelancers!

The system lets you keep client/vendor database, with contacts and rates, manage projects and assign jobs to vendors, issue invoices, track payments, store and manage project files, generate business reports on turnover profit per client/manager etc.

More info »