Community

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

    macro regular expression help

    General Discussion
    1
    4
    1581
    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.
    • patrickdrd
      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
      • patrickdrd
        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
        • patrickdrd
          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
          • patrickdrd
            patrickdrd last edited by

            edit: fixed that too, stay tuned :D

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright © 2014 NodeBB Forums | Contributors