Question on re.IGNORECASE

chemag at chemag at
Thu Oct 20 21:11:00 CEST 2005

OK, I got it.

- The re module search function syntax is:

search(  	pattern, string[, flags])

where re.IGNORECASE is a valid flag.

- The RE Object search method syntax is:

search(  	string[, pos[, endpos]])

where "The optional second parameter pos gives an index in the string
where the search is to start; it defaults to 0"

It turns out that re.IGNORECASE has the value

Am I the only person bitten by this?


More information about the Python-list mailing list