in reply to Regex problem II

I'm completely baffled at why your regex wouldn't work perfectly, since your sample data line definitely does begin (^) with the given literal (Indicator,"), and so on.

Oh, wait. No, your sample data line begins (^) with a different literal (Mortality from pneumonia). Now it makes sense.

Update: Okay, now you provide a completely different input line. But it still doesn't have the literal double-quote which you are trying to match in the pattern. See the \" in your pattern? Every literal character in the regex pattern must match exactly in the input, or it will fail the match.

--
[ e d @ h a l l e y . c c ]

Replies are listed 'Best First'.
Re^2: Regex problem II
by johngg (Canon) on May 10, 2007 at 22:41 UTC
    it still doesn't have the literal double-quote which you are trying to match

    I realise that Win's habit of updating his posts willy-nilly may have altered the sense of the OP silently but, from what I am seeing now, he did make the literal double-quote optional with a {0,1} quantifier. Do we have any computer forensics specialists in the Monastery?

    Cheers,

    JohnGG

      "Do we have any computer forensics specialists in the Monastery?"

      Sort of :)

      Martin