module re - \Q\E equivalent

Martin Richtarsky ai3 at codefactory.de
Sun May 11 07:35:09 EDT 2003


In Perl, you can do m|\Qsomestring\E| to turn off metacharacter
interpretation temporarily and match given string as is. Is this
possible with re? I haven't found any metacharacters or flags that
allow this.

Thanks,
Martin




More information about the Python-list mailing list