in reply to Re: Matching enclosed expression
in thread Matching enclosed expression

URI may not contain < and > signs

But it may contain the escaped versions, still the same question.

Replies are listed 'Best First'.
Re: Matching enclosed expression
by Abigail-II (Bishop) on Sep 15, 2003 at 12:13 UTC
    Not the same question, and not the same answer. Suppose the question was, how do I match the substring between < and > in a string, the efficient answer would be:
    /<([^>]*)>/

    but for the URI escaped version, the answer certainly isn't:

    /%3C([^%3E]*)%3E/i

    Abigail