Separating IP nodes

Kevin Breit battery841 at remove.for.no.spam.mypad.com
Mon Sep 4 01:22:41 EDT 2000


Hey,
	In my app, I have a user enter an IP address.  Great.  Now, I want to 
increment the last number.  For example:
1.1.1.1 becomes 1.1.1.2 (yes...thats an odd IP)
What is the best way to separate that and increment only the last number?  
I'm thinking some sort of regex, but not sure.  
Thanks a lot
Kevin




More information about the Python-list mailing list