message =~ s~\[size=(.+?)\](.+?)\[/size\]~"<font size=\"".(($1 > 5) ? +5 : $1)."\>$2</font>"~eisg; [download]
In reply to Re^3: Ternary inside a regex by izut in thread Ternary inside a regex by kiat