Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    $str =~ s/"([^"]*)"/'"' . sort_and_reformat($1) . '"'/eg;
    print $str, $/;
    
  2. or download this
    $str =~ s/(?<=")([^"]*)(?=")/sort_and_reformat($1)/eg;
    
  3. or download this
    $str =~ s/(?<=<tag refid=")([^"]*)(?=")/sort_and_reformat($1)/eg;