Hi, Try this,
$str="Olympus xModel 3.1mp";
$str =~ s/(.+)mp/$1/g;
print $str;
$str="Olympus yModel 3x Zoom Optical 5x Zoom Digital";
$str =~ s/([0-9]+)x Zoom//g;
print $str;
Sriram
In reply to Re: REGEX Help
by rsriram
in thread REGEX Help
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |