Question on re.IGNORECASE
chemag at gmail.com
chemag at gmail.com
Thu Oct 20 15:11:00 EDT 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
2.
Am I the only person bitten by this?
http://docs.python.org/lib/node115.html
http://docs.python.org/lib/re-objects.html
-myself
More information about the Python-list
mailing list