Help for this page

Select Code to Download


  1. or download this
    my @vocabulary = qw(abd abcd abc a bc);
    my $sentence = 'abdaabc';
    my $pattern = join '|', @vocabulary;
    
    my @words = $sentence =~ /($pattern)/g;