Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. FAQ
    Log in to post
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Most Views
    • PeterJones

      FAQ Desk: Feature Request or Bug Report
      feature request faq desk faq • • PeterJones

      1
      10
      Votes
      1
      Posts
      12396
      Views

      No one has replied

    • PeterJones

      FAQ Desk: Formatting Forum Posts
      forum format markdown faq • • PeterJones

      1
      3
      Votes
      1
      Posts
      7581
      Views

      No one has replied

    • PeterJones

      FAQ Desk: Template for Search/Replace Questions
      search replace regex regular expression • • PeterJones

      1
      4
      Votes
      1
      Posts
      1055
      Views

      No one has replied

    • PeterJones

      FAQ Desk: Can I Do a Mathematical Replacement?
      faq desk math replacement regex add1 • • PeterJones

      2
      1
      Votes
      2
      Posts
      245
      Views

      guy038

      Hello @peterjones and All,

      In your last example, relative to INCREMENT THE COUNTER PER-GROUP INSTEAD OF PER-MATCH, I suppose that we could simplify the final regex from :

      editor.rereplace(r'(?s)^{\h*$.*?^},?\h*$', replace_group)

      to :

      editor.rereplace(r'(?s)^{.+?^},?\h*$', replace_group)

      BR

      guy038

    • PeterJones

      FAQ Desk: How do I Replicate the Features of TextFX?
      faq desk textfx • • PeterJones

      1
      2
      Votes
      1
      Posts
      844
      Views

      No one has replied

    • PeterJones

      FAQ Desk: Notepad++ Crashes/Freezes/Unresponsive after Update
      crash freeze update plugins • • PeterJones

      1
      4
      Votes
      1
      Posts
      305
      Views

      No one has replied

    • PeterJones

      FAQ Desk: How to install and run a script in PythonScript
      faq desk faq pythonscript script • • PeterJones

      1
      4
      Votes
      1
      Posts
      284
      Views

      No one has replied

    • PeterJones

      FAQ Desk: Generic Regular Expression (regex) Formulas
      regex • • PeterJones

      1
      2
      Votes
      1
      Posts
      515
      Views

      No one has replied

    • PeterJones

      FAQ Desk: Huge Gaps / Blank Areas in the UI Borders
      • PeterJones

      1
      4
      Votes
      1
      Posts
      864
      Views

      No one has replied

    • PeterJones

      FAQ Desk: Periodic Backup vs AutoSave Plugin
      backup autosave unsaved • • PeterJones

      1
      3
      Votes
      1
      Posts
      2320
      Views

      No one has replied

    • PeterJones

      FAQ Desk: Search and Replace Across Files
      search replace regex multiple files • • PeterJones

      1
      3
      Votes
      1
      Posts
      321
      Views

      No one has replied

    • PeterJones

      FAQ Desk: How do I use Notepad++ to Compile my Source Code (or Convert My Text)?
      • PeterJones

      1
      3
      Votes
      1
      Posts
      1407
      Views

      No one has replied

    • MAPJe71

      FAQ Desk: Function List Basics
      • MAPJe71

      3
      4
      Votes
      3
      Posts
      883
      Views

      PeterJones

      For the interested user, @MAPJe71 has a collection of Notepad++ Function List definitions (and other useful files) for a wide variety of programming languages:

      https://github.com/MAPJe71/Languages
    • MAPJe71

      This topic is deleted!
      • MAPJe71

      1
      0
      Votes
      1
      Posts
      2
      Views

      No one has replied

    • PeterJones

      FAQ Desk: Automatic File Extensions
      extensions txt • • PeterJones

      1
      5
      Votes
      1
      Posts
      744
      Views

      No one has replied

    • PeterJones

      FAQ Desk: Logging in to this Forum
      oauth login password notification • • PeterJones

      1
      4
      Votes
      1
      Posts
      281
      Views

      No one has replied

    • donho

      FAQ Desk: Make Notepad++ x64 "Open with..." menu work in Win7
      • donho

      1
      2
      Votes
      1
      Posts
      261
      Views

      No one has replied

    • guy038

      FAQ Desk: Where to find REGular EXpressions (RegEx) documentation ?
      • guy038

      2
      16
      Votes
      2
      Posts
      33602
      Views

      MAPJe71

      Additional Regex Tester tool (offline): RegEx Tester

    • Scott Sumner

      FAQ Desk: Can't set Notepad++ as a default program for any extension (Windows 10)
      • Scott Sumner

      1
      5
      Votes
      1
      Posts
      9564
      Views

      No one has replied

    • PeterJones

      FAQ Desk: Why Does My .docx File Look Like Junk In Notepad++
      binary docx xls doc xlsx • • PeterJones

      1
      6
      Votes
      1
      Posts
      11166
      Views

      No one has replied

    Copyright © 2014 NodeBB Forums | Contributors