Searching for special replace function in Word 2003
Thread poster: Heinrich Pesch

Heinrich Pesch  Identity Verified
Finland
Local time: 11:18
Member (2003)
Finnish to German
+ ...
May 7, 2009

I have a big file with software strings. Each row begins with a 5-digit number, then comes a space, then a 3-digit number (the number of characters allowed in the string), then a second space and after that the actual text string:

15032 050 Text string

I would like to transfer these texts into Excel, so that I can count the string length and look, if any string is longer than allowed.

Now I cannot use the spaces as delimiters, because in the text-strings are also spaces. Or can I?

I managed already to replace the first space by a tab, but the second space is more complicated.

How would I write a formula that looks for a tab, followed by three numbers and a space and replaces this space by a tab?

Thanks for your ideas!

Heinrich


Direct link Reply with quote
 

Tomás Cano Binder, BA, CT  Identity Verified
Spain
Local time: 10:18
Member (2005)
English to Spanish
+ ...
In two rounds May 7, 2009

I would do the following:

To add a first tab after the first five digits:
- Look for "^p^#^#^#^#^# "
(Means: paragraph-mark digit digit digit digit digit space)

- Replace with "^&^t"
(Means: text found plus a tab mark). You will have a tab mark preceded by a space, but you surely know how to fix that.

Now for the second tab:
- Look for "^t^#^#^# "
(Means: tab-mark digit digit digit space)

- Replace with "^&^t"
(Means text found plus a tab mark). Also a space before tab mark here...

After these things, you can easily copy the table to Excel and you will have three columna. I hope this helps!


Direct link Reply with quote
 

Heinrich Pesch  Identity Verified
Finland
Local time: 11:18
Member (2003)
Finnish to German
+ ...
TOPIC STARTER
Thansk, Thomás May 7, 2009

Probably the space should still be included in the search string. Otherwise it works fine.

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 »

Searching for special replace function in Word 2003

Advanced search






TM-Town
Manage your TMs and Terms ... and boost your translation business

Are you ready for something fresh in the industry? TM-Town is a unique new site for you -- the freelance translator -- to store, manage and share translation memories (TMs) and glossaries...and potentially meet new clients on the basis of your prior work.

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 »



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