johnclarke
asked on
Removing carriage returns from a string
I am currently using CGI-LIB.pl in my Perl CGI programs. When I retrieve values from a multi line text area it is possible that the value returned could have carriage returns in it. Is there anyway to examine this value and remove all carriage returns that are embedded in it ?
I would be grateful for all help offered regarding this.
Thanks in advance
John
I would be grateful for all help offered regarding this.
Thanks in advance
John
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
And that adds what substantial piece of information to my post?
or you might want to say something like
s/\s/ /g
s/\s/ /g
will strip out all carriage return linefeed characters.
hope this helps
tobias