Any reason you are opposed to two lines?
($result = $htmlline) =~ s/<tag marker>(.+?)</td>/$1/; $result =~ s/<br(?:\s\/)?>/\n/g;
Update: If you really want one line: (untested)
( $result = $htmlline ) =~ s/{<tag marker>(.+?)</td>}{join("\n", split +(/<br(?:\s/?)?>/, $1))}eg;
They say that time changes things, but you actually have to change them yourself.
Andy Warhol
In reply to Re: regex help
by JediWizard
in thread regex help
by GaijinPunch
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |