Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
    for (@strings){
        say "yay!" if /(?:\bAlice\b|\bBob\b|\bChris\b)/;
    }
    
  2. or download this
    /
      (?:         # group, but don't capture
    ...
        \bChris\b # same as Alice and Bob
      )           # end grouping
    /