Community
    • Login

    macro regular expression help

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 1 Posters 2.6k 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.
    • patrickdrdP
      patrickdrd
      last edited by

      hello everyone,
      I’m gonna need your help with setting up 2 macros using regular expressions,
      first of all I would like to remove from my host file lines like:
      starting with: 0.0.0.0 followed by space(s) or tab(s) (or maybe anything) and then any ip addresses,
      I tried with ^0.0.0.0*\b\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3}\b.*\R but doesn’t work

      and I need another, more complex one, I’ll come up with that later

      thanks in advance!

      1 Reply Last reply Reply Quote 1
      • patrickdrdP
        patrickdrd
        last edited by

        ok, fixed that, I’ll come up with the next later,
        can somebody remove those restrictions posting?

        1 Reply Last reply Reply Quote 1
        • patrickdrdP
          patrickdrd
          last edited by

          well, I’ve got many lines containing sentences like:

          (9 row(s) affected) and empty line above and below,
          how can I write a macro to remove these 3 lines altogether?

          1 Reply Last reply Reply Quote 0
          • patrickdrdP
            patrickdrd
            last edited by

            edit: fixed that too, stay tuned :D

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