[bugs:#2490] Regexp to simulate DOTALL mode does not work
Status: open
Group: Bug
Created: Mon Nov 10, 2025 02:47 PM UTC by Georger Araujo
Last Updated: Mon Nov 10, 2025 02:47 PM UTC
Owner: nobody
This is on SciTE 5.5.8 on Windows 11 24H2 with find.replace.regexp.cpp11=1.
Regular expression first[\d\D]*second does not match the test string
first line
second line
I suppose it should work, since SciTE uses ECMAScript grammar (as per [1])? I tested it with [2], and it works. I want to use it as a workaround to simulate DOTALL mode.
[1] https://sourceforge.net/p/scintilla/code/ci/default/tree/src/Document.cxx#l3402
[2] https://regex101.com/r/DHihB3/1
Sent from sourceforge.net because scintill...@googlegroups.com is subscribed to https://sourceforge.net/p/scintilla/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/scintilla/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
From the comment in MatchOnLines:
// MSVC and libc++ have problems with ^ and $ matching line ends inside a range.
// CRLF line ends are also a problem as ^ and $ only treat LF as a line end.
// The std::regex::multiline option was added to C++17 to improve behaviour but
// has not been implemented by compiler runtimes with MSVC always in multiline
// mode and libc++ and libstdc++ always in single-line mode.
// If multiline regex worked well then the line by line iteration could be removed
// for the forwards case and replaced with the following:
You can experiment with multi-line regular expressions by defining REGEX_MULTILINE when building.
[bugs:#2490] Regexp to simulate DOTALL mode does not work
Status: open
Group: Bug
Created: Mon Nov 10, 2025 02:47 PM UTC by Georger Araujo
Last Updated: Mon Nov 10, 2025 02:48 PM UTC
Owner: nobody
I understand. Please close the ticket.
[bugs:#2490] Regexp to simulate DOTALL mode does not work
Status: open
Group: Bug
Created: Mon Nov 10, 2025 02:47 PM UTC by Georger Araujo
Last Updated: Mon Nov 10, 2025 08:16 PM UTC
Owner: nobody
[bugs:#2490] Regexp to simulate DOTALL mode does not work
Status: closed
Group: Bug
Created: Mon Nov 10, 2025 02:47 PM UTC by Georger Araujo
Last Updated: Mon Nov 10, 2025 08:29 PM UTC
Owner: nobody
It worked with w64devkit 2.4.0 [1], which ships gcc 15.2.0.
[1] https://github.com/skeeto/w64devkit
Attachments:
[bugs:#2490] Regexp to simulate DOTALL mode does not work
Status: closed
Group: Bug
Created: Mon Nov 10, 2025 02:47 PM UTC by Georger Araujo
Last Updated: Mon Nov 10, 2025 09:05 PM UTC
Owner: nobody