On Wednesday, June 26, 2002, at 08:26 , todd shifflett wrote:
> I have this situation:
> $in = "02 Jul 5.00 (YHZ GA-E)"
>
> I want:
> $out = "YHZGA-E"
you have a two stage problem -
a) get the stuff between the ()
b) remove the white space
....
if ($in =~ /\(([^\)]+)\).*/ ) {
$out = $1;
$out =~ s/\s*//g;
}
....
cf:
http://www.wetware.com/drieux/pbl/RegEx/ParenPicker.txt
ciao
drieux
---
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
