Hi all,
I am using ipython.
1 ) Defined a string.
In [88]: print string
foo foobar
2) compiled the string to grab the "foo" word.
In [89]: reg = re.compile("foo",re.IGNORECASE)
3) Now i am trying to match .
In [90]: match = reg.match(string)
4) Now i print it.
In [93]: print match.group()
foo
Correct me if i am wrong, i am expecting both "foo" and "foobar", why is it
giving
just "foo"
Thanks,
santosh
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor