Exforsys
+ Reply to Thread
Results 1 to 3 of 3

Validate IP address in Python

This is a discussion on Validate IP address in Python within the Python forums, part of the Programming Talk category; I need to validate the IP.Like no space allowed in the entry, the numerals should not exceed 255, not more ...

  1. #1
    chowsys is offline Junior Member Array
    Join Date
    Jul 2006
    Answers
    17

    Validate IP address in Python

    I need to validate the IP.Like no space allowed in the entry, the numerals should not exceed 255, not more than 3 dots allowed overall, no consecutive dots allowed. How do i go about the same? Is there any built in function for the same?


  2. #2
    cyrus is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    128
    There are many ways of achieving the validation of IP in python. Some of them are like:
    Use regular expressions and validate
    Or achieve the same by setting the VERBOSE flag

    Try and let us know whether you have got the result or need more help.


  3. #3
    chowsys is offline Junior Member Array
    Join Date
    Jul 2006
    Answers
    17
    Thanks for your help


    •    Sponsored Ads



Latest Article

Network Security Risk Assessment and Measurement

Read More...