• Login
Community
  • Login

Feature Request: List of Regex Rules to use in Search

Scheduled Pinned Locked Moved General Discussion
7 Posts 3 Posters 3.0k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D
    Daniel Vonderheide
    last edited by Aug 29, 2017, 2:58 PM

    I’m not sure if this is the place to request this but I would like to see a way to save regex find and replace strings so they can be selected from a list quickly in the find/replace dialog. I currently use the regex editor http://regexr.com/v1/ which allows me to save my expressions and load them quickly to use. The issue is I cannot load a file. I would love to see something like this implemented in N++. Thanks for looking at this and thanks for the great application!

    1 Reply Last reply Reply Quote 1
    • M
      MAPJe71
      last edited by Aug 29, 2017, 3:09 PM

      Find what and Replace with both keep a history of previously used search and replace expressions respectively.

      1 Reply Last reply Reply Quote 0
      • D
        Daniel Vonderheide
        last edited by Aug 29, 2017, 3:46 PM

        How many previous search and replace expressions will those list store and is it an editable value? I Currently have over 100 expressions stored for use on the regexr.com site and they are easily namable. I can live without the name if I can store that many but naming them would be nice.

        1 Reply Last reply Reply Quote 0
        • M
          MAPJe71
          last edited by Aug 29, 2017, 3:54 PM

          See nbMaxFindHistoryFind and nbMaxFindHistoryReplace in config.xml for adjusting the length of the history lists (don’t use Notepad++ to edit the file).
          AFAIK naming them is not possible.

          1 Reply Last reply Reply Quote 0
          • D
            Daniel Vonderheide
            last edited by Aug 29, 2017, 4:19 PM

            This will work and thank you for letting me know how to change the size of the lists, but it’s doesn’t link the find and replace commands together or allow for the naming of the two as a single rule. The ability to do these two things would make it so much more user friendly for those of use that have to constantly use the same Regex commands.

            1 Reply Last reply Reply Quote 0
            • M
              MAPJe71
              last edited by MAPJe71 Aug 29, 2017, 4:40 PM Aug 29, 2017, 4:40 PM

              The ability to do these two things

              Yes, that would a be nice feature/configuration setting.
              Notepad++ supports Regex Search/Replace but that’s not its core business.
              Maybe there is a more suitable editor for your usecase e.g. EditPad Lite or EditPad Pro in conjunction with RegexBuddy (though not free/open source).

              1 Reply Last reply Reply Quote 1
              • J
                Jim Dailey
                last edited by Aug 30, 2017, 12:06 PM

                @Daniel-Vonderheide

                By no means ideal, but maybe you could keep your regexes in a file and then copy and paste them from there. Perhaps a macro could make this less painful to use.

                1 Reply Last reply Reply Quote 0
                2 out of 7
                • First post
                  2/7
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors