lua-users home
lua-l archive

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


I'm trying to make a regex that splits a string of elements delimited by
some character.  The following doesn't work.  I can think of other ways but
I'd like to know why this doesn't work, and also why strfind is returning an
apparently illegal result (start greater than end).

    > print(strfind("hello:there", "(.-)%:?"))
    1       0