in reply to REGEX Help
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: REGEX Help
by dsheroh (Monsignor) on Jun 24, 2006 at 14:31 UTC |