View Single Post
Old 04-18-2014, 12:25 PM   #4
mikapanja
Perfectionist
mikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentametermikapanja can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
Posts: 72
Karma: 12802
Join Date: Apr 2014
Device: none
Quote:
Originally Posted by kovidgoyal View Post
1) Split at cursor does not make sense, what if the cursor is not at a location where splitting is legal? If you want to split based on the code view, right click and choose split at multiple locations, that will allow you to split based on tag id/tag name, basically any XPath

2) I dont know what you mean by minimal match. If you want quantifiers like * and + to be non-greedy simply follow them with a ? in the expression.
1) There are instances where I would like to split a file at a single location, not at multiple locations. If that should happen to be a location where splitting is not legal, Calibre could just refuse to do it, with an appropriate warning.

2) Minimal Match is a Sigil name for ungreedy matching. It uses (?U) to match the first occurrence of a string. Let's say I want to find (and later replace, according to a rule) entries in HTML TOC:

- in Sigil's RegEx mode, when I type >(\w)(.*)?< in Find box, I get >Cover<;

- in Calibre's RegEx mode, I get >Cover</a><.

So, I guess my question is if Calibre could use (?U) prefix for this kind of search.
mikapanja is offline   Reply With Quote