Having looked at the HTML:: modules, i really do think this Text::Balanced is exactly what i want/need it to do...
I realize that your code is only a snippet, but it does look like it is possible to concoct valid HTML hyperlinks that don't get caught by it:
Whether these matter depends on your application and your users. But if they do you probably are better using a module explitly for parsing HTML rather than trying to think of all the possible valid variations.
Smylers
In reply to Re: Text::Balanced woes..
by Smylers
in thread Text::Balanced woes..
by u914
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |