in reply to Re: A hard RegEx problem.
in thread A hard RegEx problem.

Is there a specific reason why you paired ^ with \z? Normally, I'm used to seeing either ^/$ (start/end of line) or \A/\z (start/end of string). Mixing those up to anchor one end of the line and the other end of the string seems strange to me.

Replies are listed 'Best First'.
Re^3: A hard RegEx problem.
by ikegami (Patriarch) on Oct 19, 2007 at 05:02 UTC

    Happenstance. I chose them independently, not as a pair. Use \A..\z if you prefer. \z is kinda odd anyway. \A is closer to \Z than to \z.