in reply to Re: is array the best way to handle this?
in thread is array the best way to handle this?

Thanks, this worked beautifully. One more question. This is an example of the text I get in the MESSAGE field:

^M
^M
=================================================^M
DT: AUGUST 7, 2003 ^M
TO: ALL STATIONS / PROGRAM AND NEWS DIRECTORS ^M

How in the world do I get rid of the ^M characters? They are carriage returns from something (I have no idea what). I have tried every regex replace I can think of but nada.

  • Comment on Re: Re: is array the best way to handle this?

Replies are listed 'Best First'.
Re: Re: Re: is array the best way to handle this?
by dragonchild (Archbishop) on Sep 08, 2003 at 20:02 UTC
    Those are Windows carriage returns. s/\r//g; is the regex you're looking for.

    ------
    We are the carpenters and bricklayers of the Information Age.

    The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6

    Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

      Thank you thank you thank you!!! That took care of the rest of it.

      goosefairy