Navigation

    Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Feature Request: List of Regex Rules to use in Search

    General Discussion
    3
    7
    2613
    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.
    • Daniel Vonderheide
      Daniel Vonderheide last edited by

      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
      • MAPJe71
        MAPJe71 last edited by

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

        1 Reply Last reply Reply Quote 0
        • Daniel Vonderheide
          Daniel Vonderheide last edited by

          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
          • MAPJe71
            MAPJe71 last edited by

            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
            • Daniel Vonderheide
              Daniel Vonderheide last edited by

              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
              • MAPJe71
                MAPJe71 last edited by MAPJe71

                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
                • Jim Dailey
                  Jim Dailey last edited by

                  @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
                  • First post
                    Last post
                  Copyright © 2014 NodeBB Forums | Contributors