in reply to Re: I am gating MAD!
in thread I am gating MAD!

Thx, Forgot about the //s flag... Last thing: why this one doesn't work:
/HELPTEXT\s+"(.+)"\s+/s
Thx.

Replies are listed 'Best First'.
Re^3: I am gating MAD!
by ysth (Canon) on Mar 02, 2008 at 09:12 UTC
    "doesn't work" here means it gets more than you want, I'm guessing?

    The .+ is greedy; it matches as much as possible of your string so long as it is followed by " and whitespace. Use .+? to be non-greedy, or use [^"]+ to match only non-" characters.