Exforsys

Free Training

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 ...

Go Back   Exforsys > Programming Talk > Python

Exforsys.com

  #1 (permalink)  
Old 12-03-2006, 03:22 AM
Junior Member
 
Join Date: Jul 2006
Posts: 20
chowsys is on a distinguished road
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-12-2006, 12:56 AM
Senior Member
 
Join Date: Apr 2006
Posts: 153
cyrus is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-27-2006, 04:57 AM
Junior Member
 
Join Date: Jul 2006
Posts: 20
chowsys is on a distinguished road
Thanks for your help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Free Books on Python pmsprasa Python 0 11-11-2006 01:44 PM
Can some one show me some Python coding MadKad Python 8 04-30-2006 11:56 AM
Python Collection cybot Python 0 04-28-2006 09:57 AM
constant URL in the address bar itzsug ASP 5 04-28-2006 06:40 AM
Python script problem Zarooka Python 1 04-20-2006 07:46 PM


All times are GMT -4. The time now is 12:20 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright 2004 - 2009 Exforsys Inc. All rights reserved.