lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


How can I match all possible EndOfLines in strfind() with a Lua pattern?

EndOfLine is  \n\r
          or  \r\n
          or  \n
          or  \r

         but  \n\n  are two EndOfLines with an empty string between
        also  \r\r

Since one hour I try to define a pattern that matches all possible
EndOfLine definitions.


Markus