in reply to Regular expression help
use strict; my $string = "Required Not_Required Not_Required Required"; my @words = split(" ",$string); map {$_ =~ /^Required$/g;print "$&"}@words;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Regular expression help
by JavaFan (Canon) on Oct 23, 2008 at 11:12 UTC |