in reply to Matching enclosed expression

I'm not convinced your question is your real question. URI may not contain < and > signs, so there's no need to extract stuff like <idparm> out of an URI, because such substrings cannot exist.

So, what's your real question?

Abigail

Replies are listed 'Best First'.
Re: Re: Matching enclosed expression
by Anonymous Monk on Sep 15, 2003 at 12:01 UTC
    URI may not contain < and > signs

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

      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