|
-
February 23rd, 2010, 04:01 PM
#1
Finding Consecutive Chars in a String
I'm trying to write an email validation program, and I'm having a lot of trouble finding a way to check a string for invalid consecutive chars. Specifically, emails cannot have a repeated ".", "-", or combination of these two chars, so [email protected] is invalid.
Does anyone have any ideas on how I could approach this? In particular, the "-." and ".-" possibilities are messing me up.
Any help would be appreciated!
Thanks,
--valhalla8
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|