I have a input string of ..{....}..{..}...,
I need to get the output in an array that contains
only: {....} {..} character strings.
I tried:
$instr1 = "111{first first}222 333{second}444";
$_ = $instr1;
@outstr = m/{.+}/g;
@outstr has a value of {first first}222 333{second};
I would like the output to be:
$outstr[0] = first first
$outsrt[1] = second
Can anybody help? Thanks in advance.
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]