rizonesoft / Notepad3

Notepad like text editor based on the Scintilla source code. Notepad3 based on code from Notepad2 and MiniPath on code from metapath. Download Notepad3:
https://www.rizonesoft.com/downloads/notepad3/
Other
4.79k stars 322 forks source link

Regexp grammar {min,max} not supported? #5180

Closed ZzzzzzzSkyward closed 1 month ago

ZzzzzzzSkyward commented 1 month ago

Problem: I find the regular expression .{1,2} not working. Version:

Notepad3 (x64) 6.23.712.1 rc (f601f3a9)
Compiler: MS Visual C++ 2022 v17.6.5 (VC v1936)
OS Version: Windows 10  Version 22H2 (Build 19045)
Windows Colors 'Dark-Mode' Theme is NO SUPPORTED.
Scintilla v535
Lexilla v525
Oniguruma v6.9.9
- Process is not elevated
- User is in Admin-Group.
- Locale -> zh-CN (CP:'ANSI (CP-936)')
- Current Encoding -> 'Unicode (UTF-8)'
- Screen-Resolution -> 1920 x 1080 [pix]
- Display-DPI -> 96 x 96  (Scale: 100%).
- Rendering-Technology -> 'DIRECT-WRITE'
- Zoom -> 100%.
- Current Lexer -> '文本文件'
RaiKoHoff commented 1 month ago

Please try the current beta Version, ".{\<min>,\<max>}" works as expected.

Ref.: https://github.com/kkos/oniguruma/blob/master/doc/RE

ZzzzzzzSkyward commented 1 month ago

Solved.