Notepad ++ quantizer designation

I played with the Notepad ++ regex engine, but there’s something I can’t do, it’s an explicit quantification notation.

I saw several other posts here that use the following syntax: (expr) {1,2}

However, when I use it in the test it is as simple as k{1,1} where the text to search is - k: no match. I tried a lot of syntax: {1,}, {1}, etc. Am I missing something?

Sorry, my bad english, and thanks for your answers!

+5
source share
2 answers

Starting with version 6.0 Notepad ++ supports PCRE ( source ). Quantifiers will work as expected in these versions.

Regex Notepad ++ 5.9.8 (source).

:

  • k*, k{0,}.
  • k+, k{1,}.
  • k?, k{0,1}.

, .

:

  • kkk+ k{3,}
  • kkkk?k? k{3,5}
+18

Notepad ++, , . k+ k*.

+1

All Articles