Is this extract_tagged from Text::Balanced? Text::Balanced is a set of tokenizing functions for parsers. Tokenizers extract from the current position in the string/stream, so these function can't be used to match something that may occur later in the string. In other words, your string doesn't start with <a href=" (it starts with <li><a href="), so nothing is extracted.
I don't know what to suggest as a replacement, but I'm sure someone else will be suggesting a module better suited to what you are doing.
In reply to Re: extract_tagged
by ikegami
in thread extract_tagged
by yacoubean
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |