in reply to Problem with Text::Balanced
You are using q/{}'"/ for your delimiter. This is incorrect, the quotes around "value" are not a delimiter, only the braces are.
extract_bracketed($css, '{}')
should work for you. Note that you really only need '{' or '}' as the delimiter, I just happen to find '{}' more legible.
Re: Re: Problem with Text::Balanced
by darobin (Monk) on Apr 25, 2001 at 21:28 UTC
|
Yes I do need the " and ' because those must be balanced too. I don't want { "}" } to do the wrong thing. Quotes must be balanced here too, and yes } can happen between quotes on the rhs.
In any case, taking away the quotes doesn't change anything. It's in the way Text::Balanced handles \n somehow, I'm nearly there.
-- darobin -- knowscape 2 coming soon --
| [reply] |
|