"if someone defines a regex's pattern with \\\\\\\\' or r\\\\' because he believes that there is a character \\ before a character ' because of the display of a source code with repr() , he does incorrect pattern." . . . .