in reply to Re^2: Conditional regex
in thread Conditional regex

But if he already identified a complete opening tag for the IMG, the code in there might help him break it up into attributes. Or, if he has trouble reliably finding a complete opening tag, that code might help him do that. It's not a complete parser, but a list of canned regex's doing what he asked for. And they can be further modified.

Replies are listed 'Best First'.
Re^4: Conditional regex
by ikegami (Patriarch) on May 08, 2009 at 21:07 UTC

    It's not a complete parser, but a list of canned regex's doing what he asked for.

    It's a list of canned regex's doing something similar to what he asked for. XML and HTML syntaxes are different.

    The OP could derive the HTML equivalents from them, but it's moot since he expressed a desire to not use CPAN.

      So I'll let the OP decide it's "forbidden". Forgive me for offering some advice other than magically making the correct code appear on his disk.
        I never said or implied it wouldn't be useful. I said the opposite, in fact.