in reply to Repeatable regex.

You're close -- the regex will return a list context with each matched value, particularly if you use /g. So do:
$mystring = join(' ', ( $myString =~ /\"(.+?)\"/g) );
And that should be able to do it. (Update...after fixing that first operator to be '=', not '=~'....)
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain

Replies are listed 'Best First'.
Re: Re: Repeatable regex.
by the_0ne (Pilgrim) on Apr 03, 2001 at 06:01 UTC
    Masem:

    Thanks for the help. I couldn't get it to work the exact way you had it, but I'm thinking that the first "=~" should have been "=". Is this right or did I do something wrong by not getting it to work the first way you had it?

    Thanks again, that worked perfectly though.

    If you did add the "~" by accident I can understand that. A lot of times I'll write up a beautiful (if I do say so myself) regex and then wonder why it's not working. I bang my head and bang my head and then I realize I forgot the (~).

    Update:
    Thanks Masem, I noticed your update.