I'm looking for a regular expression that's guaranteed to never match anything. I'm working with a Python script that parses LaTeX documents [1], and I'm using a regexp to find comments (beginning of line, any whitespace, then a percent sign: "^\s*%"). But in the middle of the verbatim environment, it shouldn't interpret anything as comments -- so I'd like to use some sort of regexp that never matches, so I can just switch the particular regexp object I'm using while parsing such an environment. Any suggestions? I could randomly generate a bizarre string (like "\y;$j[3o*6I[/W~fq\+l|~yr~as") which in practical terms will work, but that's an ugly solution. TIA for the help. Dan 1. http://www.pps.jussieu.fr/~beffara/soft/rubber/ -- Ceci n'est pas une .signature. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://mailman.mn-linux.org/pipermail/tclug-list/attachments/20070112/82711922/attachment.pgp