Gives:my $str = 'Debashis Pranab roy Nagendra roy murali mohan roy'; my @hits = $str =~ m/\b([[:alpha:]]+)\s+\broy\b/g; print "@hits\n";
Pranab Nagendra mohan
In reply to Re: help with regular exprestion
by cdarke
in thread help with regular exprestion
by dnreddy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |