in reply to Re: inconsistency in whitespace handling
in thread inconsistency in whitespace handling

I think this is because underneath the \p{Foo} stuff generates a different regex opcode which calls through the utf routines even if the source string isn't marked as utf.

Replies are listed 'Best First'.
Re^3: inconsistency in whitespace handling
by demerphq (Chancellor) on May 13, 2005 at 11:18 UTC

    Youd be correct, UTF8 in either the text being matched or the pattern causes UTF8 semantics to apply to the whole regex. A good example of oddness this causes is the differing handling of the german sharp S. If you use extended ascii a case insensitive pattern will not match 'ss' if you use utf8 it will. :-)

    ---
    $world=~s/war/peace/g