Facebook
From Scott, 1 Month ago, written in Perl.
This paste is a reply to Untitled from Scott - go back
Embed
Viewing differences between Untitled and Re: Untitled
# Find the *first* three letter word in the string
my $str = "one "one two three four five six seven eight nine ten";
ten";
my @x   = $str =~ m/b(w{3})b/; # ("one")("one")