lua-users home
lua-l archive

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


On Thu, Jan 21, 2021 at 10:04 AM Philippe Verdy <verdyp@gmail.com> wrote:
>
> and here using %z (really deprecated?) or \000 would be incorrect: you don't want to match a nul character in the source text (which would be invalid anyway anywhere in a javascript source, or URL, or HTML using a single-byte character encoding). To match the end of string use the '$' anchor only.

The frontier pattern uses the null character to match the begin or end
of a string, this is documented.

-- 
Gé