typomaniac - 6:18 am on Feb 8, 2012 (gmt 0)
Actually Lucy, you gave me a real eye opener. I see that you can actually add the style class to the <p> tag such as:
$request =~ s/\r\n/<p class=\"indent\">/g; if the class is needed and also no matter how many times they hit the spacebar the space between tparagraphs will always be the same unlike using the <br /> tag in which case if they hit the spacebar 5 times there would be 5 spaces between paragraphs where even if there are 5 <p> tags the distance between paragraphs remains at only one space. The only thing is, how do you include the closing </p> tag?
It is not that important that paragraphs are indented even though the way you described makes it possible--I was only thinking about people who like to indent paragraphs.
As far as adding css to regex---is this a rabbit you pulled out of a hat or something that has been done before---cool trick.
Thanx---gonna' have to put some thought into the direction I take on this one.