in reply to Re: Regex text extraction b/w first intance of pattern X and third instance of pattern Y.
in thread Regex text extraction b/w first intance of pattern X and third instance of pattern Y.

I won't make the mistake of assuming you are using 'a', 'b' and 'c' here

Why is it a mistake to assume that he is doing what he says he is doing, and what his example shows he is doing?

I presume 'c' here to be some string, which can even be longer than a single character.

A why is it better for you to presume that he means something other than what he says?

I think that your re-interpretation of the question asked, is a valid and interesting adjunct to it, but why the baseless snide narrative?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"I'd rather go naked than blow up my ass"
  • Comment on Re^2: Regex text extraction b/w first intance of pattern X and third instance of pattern Y.

Replies are listed 'Best First'.
Re^3: Regex text extraction b/w first intance of pattern X and third instance of /pattern Y/. (snide)
by tye (Sage) on Mar 31, 2010 at 14:09 UTC
Re^3: Regex text extraction b/w first intance of pattern X and third instance of pattern Y.
by roboticus (Chancellor) on Mar 31, 2010 at 14:43 UTC

    BrowserUK:

    I think the "expanded" problem is reasonable given the title, since the title specifies patterns X and Y rather than specific characters. The way I read the OP is that (s)he properly simplified it to a trivial case in the example.

    ...roboticus

      I agree, though the use of index isn't going to handle "patterns" in the "Regex" sense of the term. But absense the narrative, it would have had my upvote.


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.