Not all operators supported in ++?

Jim
2014-01-18
2014-01-24
  • Jim
    Jim
    2014-01-18

    I'm trying to use some of the operators shown in Notepad++Wiki but they are not working in my copies of NP++.. such as:
    {n,} Matches n' or more copies of the element it applies to.

    Do you have to turn on some setting?

     
  • THEVENOT Guy
    THEVENOT Guy
    2014-01-19

    Hello Jim,

    If you use an old ANSI version of N++ or if your UNICODE version of N++ is prior to the v6.0 version, you can't benefit from the new PCRE ( PERL Common Regular Expressions ) syntax of regular expressions, now used by N++ !

    So, just update your N++ version and operators, like the quantifier {n,} and many, many others will be available !

    You will find good documentation, about the new PERL Common Regular Expressions (PCRE), used by N++, since the 6.0 version, at the TWO addresses below :

    http://www.boost.org/doc/libs/1_48_0/libs/regex/doc/html/boost_regex/syntax/perl_syntax.html

    http://www.boost.org/doc/libs/1_48_0/libs/regex/doc/html/boost_regex/format/boost_format_syntax.html

    The FIRST link concerns the syntax of regular expressions in SEARCH

    The SECOND link concerns the syntax of regular expressions in REPLACEMENT

    Good luck, in learning advanced regex syntax.

    Indeed, with that major improvement ( Thanks to Dave BrotherStone ) and the different script plugins, in various languages, Notepad++ is really able to "butcher" any text, in any way !!!

    Best regards,

    guy038

     
    Last edit: THEVENOT Guy 2014-01-19
    • Jim
      Jim
      2014-01-24

      Thanks so much guy038!
      Excellent! I use np++ for analyzing debuglogs in our software. This will really help!
      I guess the NP++ doesn't automatically do major version upgrades with it's updater - only updates.
      Got to go now and install version 6.5 on all my various machines!

      Jim