In comp.lang.javascript message <b66d5f6f-2ba7-424c-b429-b19f41d9203a@p2
g2000prn.googlegroups.com>, Wed, 26 Nov 2008 05:18:56, Neeraj
Here, mtr is 32-bit MiniTrue, see signature; but other RegExp tools
might serve. This assumes that all headings are written <H#> without,
for example, any style or class; and that <H#> does not otherwise occur.
There must always be an <H1> first.
AFAICS, the only other error is to have a heading followed by another
which is higher in number by more than 1.
Example :
MSDOS prompt mtr -o -x+ european.htm ".*<H(\d)>.*\n" = \1
result 12334354423444444334442223434555554455542334244233
shows just the numbers of the headings of that page.
The errors are having in it any of 13 14 15 16 24 25 26 35 36 46 ; the
rest is up to you.
One should be able to write a JavaScript function to do the same or
similar to document.body.innerHTML of the page that it is executed in,
and to provide it from an include file.
--
(c) John Stockton, nr London, UK.
[email protected] Turnpike v6.05 IE 7.
Web <URL:
http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms,& links.
I find MiniTrue useful for viewing/searching/altering files, at a DOS prompt;
free, DOS/Win/UNIX, <URL:
http://www.idiotsdelight.net/minitrue/> unsupported.