Help for this page

Select Code to Download


  1. or download this
    while ( <code goes here> ) {}
    
  2. or download this
    #!/usr/bin/perl
    my $string = 'abc abc abc \textit{abc abc} abc \textit{abc abc \textbf
    +{abc \textbf{abc abc} abc} abc} abc.';
    
    while ($string =~ s/\\text(i|b)[tf]\{([^{}]*)\}/<$1>$2<\/$1>/g) {}
    print $string;