Exforsys

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


Go Back   Exforsys > Programming Talk > Python

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-03-2006, 02: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
  #2 (permalink)  
Old 12-11-2006, 11:56 PM
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, 03: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


Thread Tools

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

vB 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 12:44 PM
Can some one show me some Python coding MadKad Python 8 04-30-2006 10:56 AM
Python Collection cybot Python 0 04-28-2006 08:57 AM
constant URL in the address bar itzsug ASP 5 04-28-2006 05:40 AM
Python script problem Zarooka Python 1 04-20-2006 06:46 PM


All times are GMT -4. The time now is 07:25 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.