in reply to Re: Determine whether file is dos or unix format
in thread Determine whether file is dos or unix format

That won't work on the Mac. Use hex escapes or similar to be portable: /\x0D\x0A/

Replies are listed 'Best First'.
Re^3: Determine whether file is dos or unix format
by nevyn (Monk) on Nov 29, 2005 at 20:05 UTC
    Is that still true on OS X? I'd assumed that POSIX mandated \r and \n to be certain values.
    --
    James Antill