Jump to content

Using Word to strip out code from text document


Recommended Posts

Posted

Hi,

I'm trying to use the find and replace feature in word to strip out unwanted code from a long list of emails i'm putting together for my website's mailing list.

For instance I have a list of emails like this:

Sam<sam@msn.com>

Lulu<lulu@google.com>

etc

and I need to generate one like this:

sam@msn.com

lulu@google.com

Does anyone know how I might achieve this?

Thanks in advance

Matthew


Posted

Actually for such tasks Word can do it:

1) run search and replace with search "<" and replace "^t" (without quotes), this will replace every occurrence of < with a TAB

2) run search and replace with search ">" and replace "" (i.e. have the replace box empty), this will replace every occurence of > with nothing.

3) Select the list and use "Convert text to table" making sure to use TAB as the delimiter.

4) either delete the column before the e-mail addresses and convert the table back to text or select only the column with e-mails and paste it in another document (either Word or, as suggested, Excel)

Alternatively, you can save the Word file to "plaintext" with a .csv extension and then use Excel as uid0 suggested.

jaclaz

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...