kevinnichols78
April 19th, 2005, 05:17 PM
So I looked at this post here:
http://www.codeguru.com/forum/showthread.php?t=273282&highlight=regular+expressions
Which told me exactly what to do, and if I duplicate exactly what is on that page, it works. However, when I try and make it work for what I want to do, it doesn't. I'm trying to split an IP. It is passed in as a string, so I don't see what the problem is. If I try: ip.split(".") it doesn't seem to work. Can I not split on the period? If I replace the periods and try this: ip.split("#") it works just fine. Any suggestions?
Thank you,
Kevin
http://www.codeguru.com/forum/showthread.php?t=273282&highlight=regular+expressions
Which told me exactly what to do, and if I duplicate exactly what is on that page, it works. However, when I try and make it work for what I want to do, it doesn't. I'm trying to split an IP. It is passed in as a string, so I don't see what the problem is. If I try: ip.split(".") it doesn't seem to work. Can I not split on the period? If I replace the periods and try this: ip.split("#") it works just fine. Any suggestions?
Thank you,
Kevin