fork(1) download
  1. #!/usr/bin/perl
  2. use strict;
  3. use warnings;
  4.  
  5. my $s = 'Noot thiis <begin> buut theese need too bee chaanged <end> buut noot heeree eitheer';
  6. $s =~ s{(<begin>[^<]*(?:<(?!end>)[^<]*)*<end>)}{ $1 =~ s/([eiaou])\1/\u$1/gr }eg;
  7. print $s;
Success #stdin #stdout 0s 6188KB
stdin
Standard input is empty
stdout
Noot thiis <begin> bUt thEse nEd tO bE chAnged <end> buut noot heeree eitheer