As an example,from a text like this:
By 1984, Dylan was distancing himself from the "born again" label. He told Kurt Loder of Rolling Stone magazine: "I've never said I'm born again. That's just a media term. I don't think I've been an agnostic. I've always thought there's a superior power, that this is not the real world and that there's a world to come."
I want to extract:
- "born again"
- "I've never said I'm born again. That's just a media term. I don't think I've been an agnostic. I've always thought there's a superior power, that this is not the real world and that there's a world to come."
There is obviously no fixed amount of quotes that will be in the text itself, so the solution needs to extract all quoted portions.
I was trying with Text::Balanced
like this:
extract_delimited($text, "\"");
inside a loop, but I can't get it to even extract "born again" - which would be a good start.
Is Text::Balanced
the right tool? what am I getting wrong?