PYTHON CIRCLE
Practice
Python Books
Archive
Subscribe
Login
Menu
Login
Practice
Python Books
Archive
Subscribe
Python Multiple Choice Questions
Which of the following special characters matches a pattern only at the end of the string?
A. \B
B. \X
C. \Z
D. \A
Show Answer
Next Question
Correct Answer:
C
Explanation: \B matches a pattern which is not at the beginning or end of a string. \X refers to re.VERBOSE. \A matches a pattern only at the start of a string. \Z matches a pattern only at the end of a string.
© 2022-2023 Python Circle
Contact
Sponsor
Archive
Sitemap