[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Combining two tiny scripts
- From: Gé Weijers <ge@...>
- Date: Thu, 21 Jan 2021 11:07:11 -0800
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é