View Single Post
Old 03-02-2017, 08:06 AM   #67
Rob557
Zealot
Rob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-booksRob557 has learned how to read e-books
 
Posts: 108
Karma: 810
Join Date: Jul 2012
Device: Kobo
Thanks Kovid. I now understand.

You were not referring to my putting single quotes around the double quote within the RegEx expression but instead using the double quote BY ITSELF (with no escape code or single quote enclosures) within the RegEx expression, and at the same time using single quotes to replace the double quotes (as normally generated by the xpath process) that enclose the ENTIRE RegEx expression.

That work-around does the trick. Thank you.

One ancillary question is that I now realize that I should simultaneously be looking for potential ToC entries that could end in either a single quote or a double quote. In that case, I was wondering if there is another character that could be used to enclose the entire RegEx expression within the xpath instruction if both a single quote and double quote were used within the RegEx expression?
Rob557 is offline   Reply With Quote