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