What is the practical issue here? If you are expecting to coerce 'Nanny' to something sensible as a number you have already missed the boat. It's not clear that there are any regular expressions involved in parsing strings into numbers.
As an aside, your regular expressions would be better written as /(?:nan|inf)/ and /\w(?:nan|inf)\w/ rather than trying to match an entire string.
In reply to Re: Weird behavior of int()
by GrandFather
in thread Weird behavior of int()
by cLive ;-)
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |