1. Shlomi Fish
  2. shlomi-fish-homepage

Commits

Shlomi Fish  committed 4f1ea70

Non-capturing grouping.

  • Participants
  • Parent commits 46c6643
  • Branches default

Comments (0)

Files changed (1)

File t2/humour/fortunes/convert-to-xhtml.pl

View file
 print {$back_fh} $contents;
 close($back_fh);
 
-$contents =~ s{\A(.*?)<body>}{}ms;
-$contents =~ s{</body>(.*?)\z}{}ms;
+$contents =~ s{\A(?:.*?)<body>}{}ms;
+$contents =~ s{</body>(?:.*?)\z}{}ms;
 
 $contents =~ s{<h3( id="[^>]+>[^<]+)</h3>}{<fortune_h3$1</fortune_h3>}g;