Results 1 to 4 of 4
- 08-26-2011, 06:18 PM #1
Regex, oh how I love thee...let me count all thy permutations...
OK so it has been awhile since I had to program anything in regular expression. Now I have to validate that the end user enters a valid IP address. I know how to implement the method that returns the regular expression, and I use the preset character code:
\d\d\d[.]\d\d\d[.]\d\d[.]\d\d
However, the last 3 octets MIGHT only be 1 digit...how do you suppose I should compensate for that possibility? Thanks for your help!~MSP430 Lover~
- 08-26-2011, 06:38 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,604
- Blog Entries
- 7
- Rep Power
- 17
- 08-26-2011, 07:57 PM #3
- 08-26-2011, 08:07 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,604
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
help with permutations of a string
By hoosierfan24 in forum New To JavaReplies: 8Last Post: 05-25-2011, 06:35 PM -
Help with Creating Array List of permutations
By sparklezilla in forum Advanced JavaReplies: 4Last Post: 05-26-2010, 02:30 AM -
array permutations
By mtK in forum Advanced JavaReplies: 4Last Post: 04-08-2010, 05:57 AM -
Permutations
By m00nchile in forum New To JavaReplies: 3Last Post: 03-25-2010, 08:58 PM -
Find all permutations of a number
By matzahboy in forum New To JavaReplies: 6Last Post: 12-02-2008, 03:59 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks