Help for this page

Select Code to Download


  1. or download this
    $_ = 'de ad be ef #junk';
    /^(\w\w)(?: (\w\w))*/;
    
  2. or download this
    $_ = 'de ad be ef #junk';
    /^(\w\w(?: \w\w)*)/;
    my @capture = split ' ', $1;
    
  3. or download this
    $_ = 'de ad be ef #junk';
    my @capture = /\G(?:^|\ )(\w\w)/g;
    
  4. or download this
    $_ = 'de ad be ef #junk';
    my @capture;
    while(/\G(?:^|\ )(\w\w)/g) {
        push @capture, $1;
    }
    
  5. or download this
    /(?:^|\G\ )(\w\w)/g