1.

Which of the following special characters represents a comment (that is, the contents of the parenthesis are simply ignores)?(a) (?:…)(b) (?=…)(c) (?!…)(d) (?#…)This question was addressed to me in homework.The query is from Regular Expressions in division Regular Expressions and Files of Python

Answer»

The CORRECT choice is (d) (?#…)

Easy EXPLANATION - The special character (?#…) represent a comment, that is, the contents of the PARENTHESIS are SIMPLY ignored.



Discussion

No Comment Found

Related InterviewSolutions