RE: remove spaces from Word

Subject: RE: remove spaces from Word
From: Fred Ridder <docudoc -at- hotmail -dot- com>
To: sphilip <philstokes03 -at- googlemail -dot- com>, "techwr-l -at- lists -dot- techwr-l -dot- com (techwr-l -at- lists -dot- techwr-l -dot- com)" <techwr-l -at- lists -dot- techwr-l -dot- com>
Date: Thu, 21 Mar 2013 11:59:28 -0400

Phil Stokes wrote:

> Richard Combs wrote:
> > Just remember to run it multiple times in case there are instances of three, four, or more spaces. Run it until Words tells you the Find string wasn't found.
>
>
> In fact, this is what occasioned the question. In sed I can do all that in one command, with something like
>
> sed s/' \{2,9\}/ '/g
>
> which will take out anything from 2 up to 9 spaces (9 is arbitrary - I just figure I'm not going to find more than that, but I could make that final number anything up t o 255).
>
> What I was wondering was which was the least work : convert all the word files into plain text, run them through sed, put them back into Word OR could I do it all in Word with an already existing macro?

In fact, Word supports a subset of regular expressions in it's Find function, so you *can* do this in one step. In the Find and Replace (Advanced Find) dialog, first select the "Use wildcards" option. Then, in the "Find what" box, type a single space followed by {2,9}, and in the "Replace with" box type a single space. Click Replace All, and you're all done.

-Fred Ridder


^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
EPUB Webinar: Join STC Vice President Nicky Bleiel as she discusses tips for creating EPUB, the file format used for e-readers, tablets, smartphones, and more.

Learn more: http://bit.ly/12LyN2z

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

You are currently subscribed to TECHWR-L as archive -at- web -dot- techwr-l -dot- com -dot-

To unsubscribe send a blank email to
techwr-l-leave -at- lists -dot- techwr-l -dot- com


Send administrative questions to admin -at- techwr-l -dot- com -dot- Visit
http://www.techwhirl.com/email-discussion-groups/ for more resources and info.

Looking for articles on Technical Communications? Head over to our online magazine at http://techwhirl.com

Looking for the archived Techwr-l email discussions? Search our public email archives @ http://techwr-l.com/archives


Follow-Ups:

References:
remove spaces from Word: From: phil stokes
Re: remove spaces from Word: From: yehoshua paul
RE: remove spaces from Word: From: Combs, Richard
Re: remove spaces from Word: From: sphilip

Previous by Author: Re: remove spaces from Word
Next by Author: RE: remove spaces from Word
Previous by Thread: Re: remove spaces from Word
Next by Thread: RE: remove spaces from Word


What this post helpful? Share it with friends and colleagues:


Sponsored Ads