View Single Post
Old 10-23-2015, 03:14 PM   #7
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by porphyry5 View Post
The original poster said

That is, he was asking how to do it without using xpath.
No, that is in fact a crystal-clear example of "asking how to do it using xpath".
On account of xpath is where you would put a regex.



This is beside the fact that your mention of heuristics operating on the text does not, in fact, help unless one is willing to rewrite the book.

As I said -- that is markdown-to-html.
Converting from one format to another.

You have to have the book conform to those heuristics, not the other way around.
eschwartz is offline   Reply With Quote