• Find And Replace: "Close" button in the wrong position

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • FTP Connection to Unix/Linux Server?

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Dropbox not possible to save settings because shown greyed

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    dailD

    It will be fixed in the next release.

  • Silent Installer

    Locked
    1
    0 Votes
    1 Posts
    14k Views
    No one has replied
  • Advanced "Replace" function

    3
    0 Votes
    3 Posts
    4k Views
    dailD

    The PythonScript plugin could do it (with the requirement you know Python) or just use a regular expression

    Search for
    (LargeRock02.+?materialIds=")14

    Replace with
    \132

  • Writing Protection Icon

    Locked
    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Will the Cloud ever be fixed?

    4
    0 Votes
    4 Posts
    4k Views
    Sun W KimS

    You could just run the portable version of Notepad++ and stick inside your favorite cloud provider.

  • Exception EAccessViolation in module HTMLTag_unicode.dll at 0005EDC8

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Block commenting doesn't seem to be working properly

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Newbie needs helps

    5
    0 Votes
    5 Posts
    5k Views
    guy038G

    Hello Daniel and Andreas, and All,

    As soon as you’re looking for couples (), [], {}, <>… in a text, containing unlimited nested respective couples (), [], {}, <>, you absolutely need to use a very strong feature of PCRE regex : the recursive patterns. If you don’t, it quite impossible to handle any arbitrary nesting depth !

    Generally speaking, you automatically create a recursive pattern, when you add a recursive call to a group, located INSIDE the sub-pattern whose it makes a reference.

    For instance, let’s suppose the general regex ....(....(?n)....).... and that the showed group is the group n. Then, the form (?n), located inside the group n, is a recursive call to that group n

    Concerning your problem, Daniel, the solution is the regex, below :

    (^([^()\r\n])*(\(((?2)|(?3))*\))(?2)*\r?\n)+

    You may use the PCRE_EXTENTED option (?x) to get the regex :

    (?x) ( ^ ([^()\r\n])* ( \( ( (?2) | (?3) )* \) ) (?2)* \r?\n )+

    These regexes look for any consecutive sequence of entire lines, with their End of Line character(s), whose each of them :

    Is, of the general form, ....(.......).....

    Contents well-balanced nested couples (), inside the upper-level block (....)

    So, Daniel, if you leave the replace field empty, you’ll get, ONLY, the lines where the number of opening round brackets is different from the number of closing round brackets, or lines without any round bracket at all !

    For instance, these regexes, above, don’t match any of these following lines :

    abcdef
    abc(def
    a(b)def)ghi
    a(bc(((d))ef)g

    But they do match, in one go, the block of these seven following lines, with well-balanced couples of () :

    abc(de)f
    (a(bdef)ghi)
    a(bc(((d))e)f)g
    a()bc
    ((ab(cde((fgh)ij)kl))mno)pqr
    ab(c(de(fgh(ijk))lm)((()))n()()op)qrs

    In short :

    The form (?2) is a NON recursive call to the sub-pattern [^()\r\n]

    The form (?3) is a recursive call to the sub-pattern \( ( (?2) | (?3) )* \)

    The anchor ^, at beginning and \r?\n, at the end, allow to cover an entire line, which can be repeated, due to the final + sign, applying to group 1

    The opening and closing round brackets need to be escaped \( and \). Just notice that escaping round brackets, inside the class character [....], at the beginning of the regex, is not mandatory !

    Inside the block \(....\), the regex looks for any sequence, even empty, of :

    (?2) Characters different from round brackets and from End of Line characters OR (?3)Nested other blocks of round brackets (....)

    and so on…

    I’ll give you any further information, about the recursion concept, if anyone needs to !

    Best regards,

    guy038

    P.S.,

    To end, I give you an other regex, with a recursive pattern (?2), which can match the general case of the string ....(.........)............(..)...(....)...........

    So, this regex, below, matches the tallest sequence of characters, even on several lines, which contains as much as opening round brackets than closing round brackets, with well-nested and/or juxtaposed other blocs (....) :

    ([^()]*(\(([^()]|(?2))*\))[^()]*)+

    With the PCRE_EXTENTED option (?x), we get the regex :

    (?x) ( [^()]* ( \( ( [^()] | (?2) )* \) ) [^()]* )+

    And, if you don’t think to use the group 1, in the replacement part, with the backreference \1, you may set group 1, as a non-capturing group, with the syntax ?:, in :

    (?:[^()]*(\(([^()]|(?1))*\))[^()]*)+

    (?x) (?: [^()]* ( \( ( [^()] | (?1) )* \) ) [^()]* )+

    Of course, because of the first non-capturing group, the old recursive group 2 becomes the recursive group 1

  • notepad++ status bar scale issue

    3
    0 Votes
    3 Posts
    4k Views
    gerdb42G

    Do you have your Display settings set to high DPI? I’m afraid NP++ is not always aware of this (at least not on the statusbar).

  • Is there a NP++ for Linux?

    Locked
    3
    0 Votes
    3 Posts
    4k Views
    witeresW

    NP++ runs fine on Wine.

  • Save first line as filename

    2
    0 Votes
    2 Posts
    3k Views
    cmeriauxC

    Hello,
    you can use the python script to do that.

  • Offline plugin installation

    Locked
    2
    0 Votes
    2 Posts
    23k Views
    dailD

    There is not really a “list”. The plugins are just DLLs (and any associated files). If you copy over that entire folder it should work.

  • UTF-8 file with emoji is not recognized

    Locked
    1
    0 Votes
    1 Posts
    6k Views
    No one has replied
  • Notepad++ crashes with virtual desktop manager

    3
    0 Votes
    3 Posts
    4k Views
    Gerhard PetrowitschG

    Hi,
    I checked the Event Viewer and found that Notepad++
    crashed upon unloading the DSpellCheck.dll. So I uninstalled the spell check plugin.
    Then Notepad++ crashed in its own exe. So I uninstalled Notepad++ completely, and manually removed what remained in the program folder (this I didn’t do last time I re-installed).
    Then I installed it again. And now it doesn’t crash anymore. I hope it stays this way…
    Sorry for bothering you with this.
    Thanks anyway,
    Gerhard

  • Doc Switcher keyboard shortcut

    Locked
    1
    1 Votes
    1 Posts
    7k Views
    No one has replied
  • 0 Votes
    1 Posts
    2k Views
    No one has replied
  • Accessibility problems

    5
    0 Votes
    5 Posts
    5k Views
  • bad search result

    Locked
    1
    0 Votes
    1 Posts
    2k Views
    No one has replied