in reply to regex across multiple lines

The first question is: what distinguishes a multiline from a single line in your text file? In your example, I see four separate lines, and only my knowledge of English allows me to associate "multiline" with the previous line. Regexes are powerful, but they don't speak English yet :)

-Mark

Replies are listed 'Best First'.
Re: Re: regex across multiple lines
by mndoci (Scribe) on Jun 28, 2002 at 05:47 UTC

    Good question
    and therein lies the problem. I can't find any difference other than the inclusion of printf (which is always on the first line).

    mndoci

    "What you do in this world is a matter of no consequence. The question is, what can you make people believe that you have done?"-Sherlock Holmes in 'A study in scarlet'

      Well, so how can you - as a human being - distinguish whether a line is part of a multiline. If you can't do that, then how should the computer be able to do it?

      -- Hofmator