reformating a string...

R

RAB

Hello,

I have a word document that looks as follows:

{"word1 / word1a"},
{"word2 / word2a"},
{"word3 / word3a"},
......
{"word1000 / word1000a"}

What I need to do is remove the '/ wordxa' from the document so it
looks like this:

{"word1"},
{"word2"},
{"word3"},
......
{"word1000"}

Any help would be appreciated.

Thanks,
RABMissouri2006
 
J

Jay Freedman

For the general answer, see
http://www.gmayor.com/replace_using_wildcards.htm. The specific search
string to use with the wildcard setting in this case is

/ word[0-9]{1,}a

(include a single space before the slash character). The replacement
string should be empty. Then click the Replace All button.

This can be recorded or written directly as a macro if it's something
you need to do to many documents, but it doesn't seem necessary.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top