in reply to Re^2: Regular Expression Elegance
in thread Regular Expression Elegance

I guess that it's not possible to get at the $value before the <br>-substitution—maybe making a copy of it, so that you don't stomp on the display manipulations—and perform the substitution $value =~ s/\n//g on it instead?

Replies are listed 'Best First'.
Re^4: Regular Expression Elegance
by monkie (Novice) on Nov 12, 2008 at 11:25 UTC
    yes I can but then I would still need to remove the newline chars from within the my tags but then at least it would never contain the <b> tags.