in reply to Re^2: hex-only regex
in thread hex-only regex

Fascinating. I need to read perlre more often.

Does m/regular$/s also work reliably or is \z the only safe way to do it? Until today, I've always used the former to change the meaning of $. UPDATE: Nope. It's not reliable at all. In fact, I'd go so far as to say it doesn't even work.

-Paul

Replies are listed 'Best First'.
Re^4: hex-only regex
by Roy Johnson (Monsignor) on Jan 17, 2007 at 23:46 UTC
    /s makes dot match newline. The description "treat string as a single line" is, IMO, completely unhelpful.

    Caution: Contents may have been coded under pressure.