in reply to Balance Change
perl -e '$_=shift;X while s/\\text(i|b)[tf]\{([^{}]*)\}/<$1>$2<\/$1>/g +;print;' 'abc abc abc \textit{abc abc} abc \textit{abc abc \textbf{ab +c \textbf{abc abc} abc} abc} abc.'
Mago
mago@rio.pm.org
In Section
Seekers of Perl Wisdom