JerryB wrote:
> I have a string like this:
>
> invalidStr = "192.168.*.1"
>
> I want to be sure I don't get a * followed by a number, i.e. I want
> invalidStr to be invalid. So I do:
>
> numberAfterStar = re.compile(r'\*.*\d')
>
> Now, here's the fun:
>
> If I run:
> if numberAfterStar.findall
Hi,
I have a string like this:
invalidStr = "192.168.*.1"
I want to be sure I don't get a * followed by a number, i.e. I want
invalidStr to be invalid. So I do:
numberAfterStar = re.compile(r'\*.*\d')
Now, here's the fun:
If I run:
if numberAfterStar.findall(invalidStr):
print "Found it wi