in reply to Formatting a Textarea field

Yes, you can solve with a regex, but it is probably much better to have us help you fix the root cause -- to help us do that, can you post some code?

As for the regex, the concept is simply to replace double breaks with a single one, instead of removing all of them: s/\n\n/\n/sg
Or (depending on the desired behavior) you could do: s/\n\n+/\n/sg

Replies are listed 'Best First'.
Re^2: Formatting a Textarea field
by tanger (Scribe) on Jun 05, 2005 at 23:35 UTC
    hey, thanks for the replies all of you.

    Tep was right on the money with this, but I used the regex bart gave me becaues it seems more fit. :) Thanks you guys are great.

    tanger