barrycarlyon has asked for the wisdom of the Perl Monks concerning the following question:
Fellow Estemmed Monks
I bleieve the title is correct
Given a input:
Hello, my name is barry I am 20 I am webmaster of lsrfm.com its a student radio station
What I want to to is, remove the return carriages and repalce them with <br&rt; or </p&rt;<p&rt;
So could a fellow monk advise on how to search a ref. and replace, and also what should I search for as, I am not sure what the return carriage character is
Further more the input listed is in:
my $text = "above"So, basic program
my $input = "Hello, my name is barry I am 20 I am webmaster of lsrfm.com its a student radio station"; 'some process replacing return chars. with </p&rt;<p&tk;'
As when placing the text on a page, intially obtained from a form on a webpage, where it is a textarea, it does not format the same way as it does in the text area.
Similar to this perl monks text area, but the users dont put html tags in!
Yours
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Search a perl reference and replace characters
by davido (Cardinal) on Jun 01, 2006 at 21:23 UTC | |
by ww (Archbishop) on Jun 02, 2006 at 18:06 UTC | |
by Anonymous Monk on Jun 02, 2006 at 13:22 UTC | |
|
Re: Search a perl reference and replace characters
by GrandFather (Saint) on Jun 01, 2006 at 23:06 UTC | |
|
Re: Search a perl reference and replace characters
by jdporter (Paladin) on Jun 01, 2006 at 22:47 UTC |