go ahead... be a heretic | |
PerlMonks |
Re: Replacing new line characters from HTML TEXTAREA submissionsby jlawrenc (Scribe) |
on Mar 14, 2001 at 21:12 UTC ( [id://64429]=note: print w/replies, xml ) | Need Help?? |
Sometimes I'll use the regular expression:
Maybe it is a bit too greedy for some people but for me, ack, one more newline and/or carriage returns is enough for a P tag. I just noticed that your regular expression was just /g, keep in minde it WILL stop matching on the first line. You gotta let 'er match the entire string.
In Section
Seekers of Perl Wisdom
|
|