#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2013
    Posts
    8
    Rep Power
    0

    Smile Find command in router regex


    Good afternoon, I need your valuable help one more time, in order to use regex, on my work I use a tool called NCM, I need to use a regex that let me find in a .txt configuration file from a router the commands "ip ssh authentication-retries 1" , 2, 3 , 4 or any number, the thing is that it cant be "ip ssh authentication-retries 0". How can I use a Regex that let me find all the commands "ip ssh authentication-retries with the last number greater than 0??


    Thanks again for your help

    Luisro1
  2. #2
  3. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,959
    Rep Power
    1014
    Code:
    [1-9]\d*
    The 6 worst sins of security ē How to (properly) access a MySQL database with PHP

    Why canít I use certain words like "drop" as part of my Security Question answers?
    There are certain words used by hackers to try to gain access to systems and manipulate data; therefore, the following words are restricted: "select," "delete," "update," "insert," "drop" and "null".
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2013
    Posts
    8
    Rep Power
    0
    Originally Posted by Jacques1
    Code:
    [1-9]\d*

    Thank you very much for your reply, in that case I should use ip ssh authentication-retries[1-9]\d* like this?

    Appreciatte your help!!

IMN logo majestic logo threadwatch logo seochat tools logo