in reply to Concatenation and Regex on one Statement?
Indeed it can, thanks to the utility of do.
$text = '<p class="first">' . do { $text =~ s|(\n\n+)|</p>\1<p class="later">|g; $text } . '</p>';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Concatenation and Regex on one Statement?
by Cody Pendant (Prior) on Mar 16, 2002 at 01:51 UTC | |
by dws (Chancellor) on Mar 16, 2002 at 02:45 UTC |