At 13.59 1998.04.22, Greg Reeves wrote: >I don't know if this is the right place to ask questions. If not, could >you please point me to the right place! > >I am trying to eliminate a mac "return" key from a text area field on a >HTML form. >I process the data in a perl script using all of the following: > > $value =~ s/\cM\n/ /g; > $value =~ s/\s/ /g; > $value =~ s/\n\n/ /g; > $value =~ s/%13/ /g; > >but none replaces the two new line characters which seem to be generated >by the mac return key. > >Do you know how to remove a mac carriage return character? The Mac "return" key is just a Mac OS newline, \015. The Unix newline is \012. The PC newline is \015\012. The Mac carriage return does not generate two characters, just one \015 character. -- Chris Nandor mailto:pudge@pobox.com http://pudge.net/ %PGPKey=('B76E72AD',[1024,'0824 090B CE73 CA10 1FF7 7F13 8180 B6B6']) #== New Book: MacPerl: Power and Ease ==# #== Publishing Date: Early 1998. http://www.ptf.com/macperl/ ==# ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch