What does it mean \Z(?ms)in regular expression?
\Z(?ms)
\Z- end of line, but what is the (?ms)part?
\Z
(?ms)
This is added fnmatch.translate("abc")to the returned regular expression.
fnmatch.translate("abc")
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().
(? ILmsux)
( "i", "L", "m", "s", "u", "x".) ; : re.I( ), re.L( ), re.M(), re.S( ), re.U( ) re.X(verbose), . ( " ".) , re.compile().