Re: [PHP-DB] I have a CR-LF problem when pulling stuff out of my DB

2004-08-19 Thread David Robley
On Fri, 20 Aug 2004 01:31, Michael Cortes wrote: > I found part of the answer.. > > when doing a search in vim you can hit ctrl-m as long as you hit ctrl-v > first. ctrl-v tells vim to treat the following as a character, not to do > the action i.e... carriage return. > > Now I need just one

Re: [PHP-DB] I have a CR-LF problem when pulling stuff out of my DB

2004-08-19 Thread randy
Maybe I'm missing something...but why not do this with PHP (seeing as how this is a PHP list)? ereg_replace('(\r|\n)', ' ', $string) Just a thought On Thu, 19 Aug 2004 12:01:46 -0400, Michael Cortes <[EMAIL PROTECTED]> wrote: > I found part of the answer.. > > when doing a search in vim you

RE: [PHP-DB] I have a CR-LF problem when pulling stuff out of my DB

2004-08-19 Thread Ford, Mike [LSS]
On 19 August 2004 17:02, Michael Cortes wrote: > ctrl-m is a carriage return. Does anyone know what ctrl seqence is > line feed? ctrl-j (CR and LF are ASCII codes 13 and 10, so ctrl+ the 13th and 10th letters of the alphabet respectively!) Cheers! Mike --

Re: [PHP-DB] I have a CR-LF problem when pulling stuff out of my DB

2004-08-19 Thread Michael Cortes
I found part of the answer.. when doing a search in vim you can hit ctrl-m as long as you hit ctrl-v first. ctrl-v tells vim to treat the following as a character, not to do the action i.e... carriage return. Now I need just one more piece, if anyone has the answer: ctrl-m is a carriage r

Re: [PHP-DB] I have a CR-LF problem when pulling stuff out of my DB

2004-08-19 Thread Michael Cortes
[filename], and you should be all set. > > -Mensaje original- > De: Michael Cortes [mailto:[EMAIL PROTECTED] > Enviado el: Thursday, August 19, 2004 1:36 PM > Para: [EMAIL PROTECTED] > Asunto: [PHP-DB] I have a CR-LF problem when pulling stuff out of my DB > > Howe

RE: [PHP-DB] I have a CR-LF problem when pulling stuff out of my DB

2004-08-19 Thread Russell Johnson
: [EMAIL PROTECTED] Asunto: [PHP-DB] I have a CR-LF problem when pulling stuff out of my DB This may not be exaxtly PHP-DB related but it is a result of screwing something up . I pulled a bunch of data from a DOS formatted tab seperated file and now I am dumping back out into a text file (on

[PHP-DB] I have a CR-LF problem when pulling stuff out of my DB

2004-08-19 Thread Michael Cortes
This may not be exaxtly PHP-DB related but it is a result of screwing something up . I pulled a bunch of data from a DOS formatted tab seperated file and now I am dumping back out into a text file (on linux). So, as you can imagine, I ended up with a bunch of ^M throughout the file. I plan o