[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#51458: grep PCRE - '^' and '$' are not recognized as begin and end o
Skrzyniarz, Slawomir (Nokia - PL/Krakow)
bug#51458: grep PCRE - '^' and '$' are not recognized as begin and end of line for multiline strings
Tue, 9 Nov 2021 06:48:56 +0000
Thank you Carlo.
Replacing (?: -> (?m:
Solve my issue.
From: Carlo Marcelo Arenas Belón <firstname.lastname@example.org>
Sent: Monday, November 8, 2021 9:29 PM
To: Skrzyniarz, Slawomir (Nokia - PL/Krakow) <email@example.com>
Subject: bug#51458: grep PCRE - '^' and '$' are not recognized as begin and end
of line for multiline strings
older versions of PCRE support in grep used multiline mode by default, which
seems to be required by your expression to work and is also on by default in
the regex site.
you can add it back using an internal option from PCRE, as shown in the
following modified expression from your original example: