Regular expression \ Z (? Ms)

What does it mean \Z(?ms)in regular expression?

\Z- end of line, but what is the (?ms)part?

This is added fnmatch.translate("abc")to the returned regular expression.

+5
source share
1 answer

From the docs :

(? ILmsux)

( "i", "L", "m", "s", "u", "x".) ; : re.I( ), re.L( ), re.M(), re.S( ), re.U( ) re.X(verbose), . ( " ".) , re.compile().

+12

All Articles