1.

Which of the following functions clears the regular expression cache?(a) re.sub()(b) re.pos()(c) re.purge()(d) re.subn()This question was posed to me during a job interview.I'm obligated to ask this question of Regular Expressions in section Regular Expressions and Files of Python

Answer»

Right ANSWER is (C) re.purge()

The best I can explain: The function which clears the REGULAR EXPRESSION cache is re.purge(). NOTE that this function takes zero positional arguments.



Discussion

No Comment Found

Related InterviewSolutions