in reply to Re: Regular expression not working
in thread Regular expression not working

Oh man, do I feel stupid!  Adding the asterisk makes everything work as desired.  I guess that's one of the few times that Perl will do what you tell it to, instead of what you want it to.  Thank you for helping ease my shame with your kind remark.

Is it worth the added complexity to use a JSON module, if all I want are the two strings listed here?

Replies are listed 'Best First'.
Re^3: Regular expression not working
by ikegami (Patriarch) on Jan 04, 2010 at 18:28 UTC

    Is it worth the added complexity to use a JSON module, if all I want are the two strings listed here?

    You have it backwards. Calling a function is much simpler than developing a long regex pattern. As it is, your parser is highly incomplete. It can't even handle simple things like strings with quotes in them.

Re^3: Regular expression not working
by JavaFan (Canon) on Jan 04, 2010 at 18:07 UTC
    Is it worth the added complexity to use a JSON module, if all I want are the two strings listed here?
    Considering that you had to go to perlmonks and ask before you had a correct solution, I believe the answer is yes.