Mercurial > hg > octave-lyh
diff scripts/pkg/get_forge_pkg.m @ 12462:e4dbfe3019b1
Use PCRE regular expressions throughout Octave.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Sat, 19 Feb 2011 18:21:58 -0800 |
parents | d5bd2766c640 |
children | 46b3883d800c |
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>([0-9.]*)</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");