Read perlrequick, perlre,perlrecharclass
1.Read how to match a string. 2.Read How to group a matched stringEx,
my $str="a apple"; $str =~(s/a(\s+[aeiou].+)/an\1/g); print $str
In reply to Re: Perl pattern matching question
by vinoth.ree
in thread Perl pattern matching question
by MadhAric
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |