|
From: | Paul Eggert |
Subject: | Re: possible bug in regex and dfa |
Date: | Fri, 16 Jul 2021 21:58:56 -0500 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
On 7/15/21 1:48 PM, Arnold Robbins wrote:
The regexp used there, ".^", to my mind should be treated as invalid.
No, that regular expression is valid because "." matches newline in POSIX EREs. So the "." matches a newline, and the following "^" matches the start of the next line.
[Prev in Thread] | Current Thread | [Next in Thread] |