in reply to Re: Regex: Matching quoted text
in thread Regex: Matching quoted text

Ugh........I'm using CentOS on this server and even at the latest relase they only have 5.8 in the repos. Is there anyway to do a similar regex without using that?

Replies are listed 'Best First'.
Re^3: Regex: Matching quoted text
by Anonymous Monk on Jun 04, 2010 at 14:05 UTC

      I don't think Text::Balanced would help since I already know how to extract the text from between quotes, I just need to know what to do if there is no quotes.

Re^3: Regex: Matching quoted text
by JavaFan (Canon) on Jun 04, 2010 at 15:28 UTC
    Not if you want the match to show up in $1, regardless of which alternation matched. If it was possible beforehand, 5.10 would not have introduced the (?|) construct.