Re: [PHP] ^k ? -- how do I match that?

2002-07-16 Thread Chris Hewitt
Jimmy Brake wrote: >is used in MS Excel when people hit return inside a cell. If they copy >and paste that into a form its ok, but when I export that data to a csv >it gets ugly. > I'd do validation on the user input on the form and remove it there. The ^k is used to show a control code, they be

Re: [PHP] ^k ? -- how do I match that?

2002-07-15 Thread Martin Clifford
Just try eregi_replace("\^k[.+]", "", $container); Regular expressions are the MASTERS of the INTARWEB! :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ >>> Jimmy Brake <[EMAIL PROTECTED]> 07/15/02 04:32PM >>> Hi! I keep ge

[PHP] ^k ? -- how do I match that?

2002-07-15 Thread Jimmy Brake
Hi! I keep getting that evil little character ... ^k from mac users (pre X) and I need to remove it. Does anyone know how to remove? This site has that character as a vertical tab. This character is what is used in MS Excel when people hit return inside a cell. If they copy and paste that into