diff scripts/pkg/get_forge_pkg.m @ 12468:46b3883d800c

fixed typo in PCRE style RE
author Carlo de Falco <kingcrimson@tiscali.it>
date Mon, 21 Feb 2011 17:12:25 +0100
parents e4dbfe3019b1
children
line wrap: on
line diff
--- a/scripts/pkg/get_forge_pkg.m
+++ b/scripts/pkg/get_forge_pkg.m
@@ -43,7 +43,7 @@
     ## Remove blanks for simpler matching.
     html(isspace(html)) = [];
     ## Good. Let's grep for the version.
-    pat = "<tdclass=""package_table"">PackageVersion:</td><td>([\d.]*)</td>";
+    pat = "<tdclass=""package_table"">PackageVersion:</td><td>([\\d.]*)</td>";
     t = regexp (html, pat, "tokens");
     if (isempty (t) || isempty(t{1}))
       error ("get_forge_pkg: could not read version number from package's page");