1.

The character Dot (that is, ‘.’) in the default mode, matches any character other than _____________(a) caret(b) ampersand(c) percentage symbol(d) newlineThe question was asked at a job interview.Enquiry is from Regular Expressions topic in portion Regular Expressions and Files of Python

Answer»

The correct choice is (d) newline

Easiest EXPLANATION - The CHARACTER Dot (that is, ‘,’) in the default mode, MATCHES any character other than newline. If DOTALL flag is USED, then it matches any character other than newline.



Discussion

No Comment Found

Related InterviewSolutions