Hello Brendan, please try to be a bit more verbose next time: a terse report is highly unlikely to generate a positive reply. Also, this mailing list is not the one you're looking for, since it's about bugs/enhangements in the documentation of python, you probably want http://mail.python.org/mailman/listinfo/python-list On Thu, Mar 1, 2012 at 07:10, Brendan <brendansweb@optusnet.com.au> wrote:
Docs page: http://docs.python.org/library/re.html#re.compile
see (eg): https://github.com/nathanborror/django-basic-apps/issues/20
Anyhow, I gave it a try and it seems to work: $ python2.6 Python 2.6.7 (r267:88850, Aug 3 2011, 11:33:52) [GCC 4.6.1] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import re r = re.compile('as', re.I) r.findall('asdfAsdf') ['as', 'As']
$ python2.7 Python 2.7.2+ (default, Jan 20 2012, 17:51:10) [GCC 4.6.2] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import re r = re.compile('as', re.I) r.findall('asdfAsdf') ['as', 'As']
Regards. -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi
participants (2)
-
Brendan -
Sandro Tosi