macro regular expression help



  • 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!



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



  • 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?



  • edit: fixed that too, stay tuned :D


Log in to reply