Patch #1011144: Correct regex for coding decls.
diff --git a/Doc/ref/ref2.tex b/Doc/ref/ref2.tex
index 375604f..10cfc06 100644
--- a/Doc/ref/ref2.tex
+++ b/Doc/ref/ref2.tex
@@ -75,7 +75,7 @@
 \subsection{Encoding declarations\label{encodings}}
 
 If a comment in the first or second line of the Python script matches
-the regular expression \regexp{coding[=:]\e s*([\e w-_.]+)}, this comment is
+the regular expression \regexp{coding[=:]\e s*([-\e w.]+)}, this comment is
 processed as an encoding declaration; the first group of this
 expression names the encoding of the source code file. The recommended
 forms of this expression are