fork(1) download
  1. #!/usr/bin/perl
  2.  
  3. my $target = "IF(You love DXLib) AND(CPlusPlus) THEN(Create Funny Games!)" ;
  4.  
  5. $target =~ s/[A-Z]+\(.{1,20}\)/<matched>/g;
  6.  
  7. print $target;
Success #stdin #stdout 0s 3608KB
stdin
Standard input is empty
stdout
<matched> <matched> <matched>