From cb5e00537844374ddf4622656184c411f04a190b Mon Sep 17 00:00:00 2001 From: Frank LENORMAND Date: Wed, 10 Jun 2020 12:37:43 +0300 Subject: [PATCH] doc faq: Mention `(?S)` --- doc/pages/faq.asciidoc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/pages/faq.asciidoc b/doc/pages/faq.asciidoc index c1a2f6bf..a9f2d6b7 100644 --- a/doc/pages/faq.asciidoc +++ b/doc/pages/faq.asciidoc @@ -269,6 +269,9 @@ order to select data in a line without any trailing newline characters, one coul use the `[^\n]+` pattern, which is arguably a good compromise when balanced against the ability to select data over several lines. +You can instruct the regex engine to stop matching newline characters with +`.` by disabling the appropriate flag (`(?S)`). + === Why does `a` extend the current selection, but `i` leaves it untouched ? Selections are ranges of characters whose delimiters are an "anchor" and