Which of the following special characters matches a pattern only at the end of the string?

Which of the following special characters matches a pattern only at the end of the string? Correct Answer \Z

\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.

Related Questions