in reply to Re^3: regex to replace linefeeds with <p> tags
in thread regex to replace linefeeds with <p> tags

sorry - i know it's sloppy.

i originally used the \r\n and it worked for awhile, but then started generating all the additional tags, so i was trying to make it more generalized.

i think that the input usually has a CR from the word processor (which would be a \r), and then the user adds a second line feed in the form when they are inputting it - since i guess they see only one linefeed, and i have instructions to the user to separate paras by two lines....leading to the \r\n that i expected before, but maybe now they're doing something different?

  • Comment on Re^4: regex to replace linefeeds with <p> tags