View Single Post
Old 04-08-2012, 02:16 PM   #4
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by JimLL View Post
I don't know what <p> elements means, because I don't what elements are.

Does that [1-9] apply to multiple following digits? Like Chapter 27 or Chapter 103?

No, I don't think I want to ignore case.
An element is what HTML is made up of, see HTML Elements. My point was to try "*" first (match everywhere) and if you get multiple entries for the same chapter, then try "h<semicolon>p". It does not necessarily matter what it means, only that is often works to knock out multiple matches.

The [1-9] only matches the first digit, but the chapter heading is typically taken to be the entire element (that word again) that contained the match. So the intent is to exclude "chapter" used in a sentence, by requiring it to be followed by a digit. If you want to match multiple digits, use [0-9]+ where the "+" means one or more instances and note the 0 (e.g. in 10, although this will also match chapter 0).

Not ignoring case is another way to limit the matches to those you want. If the simplest match gives what you want there is no need to try anything else.
wallcraft is offline   Reply With Quote