Can you give some examples of what would be valid strings, and what would be invalid strings? The question is a little vague. For example, can there be characters between the periods? Are you only talking about consecutive characters, or all characters in the string?
–
Drew NoakesSep 27 '09 at 8:41

I want to check for integers and decimal. So valid strings in this case would be 2.34 or 2. Invalid strings would be 2.2.3. Actually, what i have at the moment is this: [if not re.search("[0-9\.]+$", item) or not re.search("^*\.?*$", item): return "invalid value"]. If you know a better way, please let me know. Thanks!
–
teggySep 27 '09 at 8:54