1.

Which of the following functions results in case insensitive matching?(a) re.A(b) re.U(c) re.I(d) re.X

Answer» The correct answer is (c) re.I

Explanation: The function re.I (that is, re.IGNORECASE) results in case-insensitive matching. That is, expressions such as [A-Z] will match lowercase characters too.


Discussion

No Comment Found