in reply to search string regex
If you think about spaces at the end or two spaces in the middle modify your code likemy @quotes = $keyword =~ s/"([^"]*)?"//; my @keys = split(/ /, $keyword);
ormy @keys =grep length, split(/ /, $keyword);
my @keys = split(" ", $keyword);
|
|---|