ok.. I'm sorry... I was an idiot, i wasnt thinking, and i am sorry
*cringe* this will extract the string (and the brackets)... 

        ($b) = $a =~ /\(.+\)/g)

-- 
Deen Hameedd, Accidental Programmer [EMAIL PROTECTED]

---------- Forwarded message ----------
Date: Sat, 26 Jan 2002 18:30:56 +0530 (IST)
From: Deen Hameed <[EMAIL PROTECTED]>
To: Hubert Ian M. Tabug <[EMAIL PROTECTED]>
Cc: Perl <[EMAIL PROTECTED]>
Subject: Re: string manipulation


something like this should work...

        (@somearray) = split(/\(.*\)/, $a);

On Sat, 26 Jan 2002, Hubert Ian M. Tabug wrote:

> Hi,
> 
>              Given the string $a = "xxx xxx xxx xxx xxx xxx xxx (Jan 12
> 1990 ......)", I wan't to selectively extract that part of the string
> having the (Jan 12 1990 ...) and store it in an array. Can someone guide
> me?
> 
> 
> Thanks,
> Hubert
> 
> 

-- 
Deen Hameedd [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to