View Single Post
Old 10-15-2012, 01:18 PM   #35
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,637
Karma: 2162064
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
@mmat1 - yeah we know exactly what the problem is, and it will only be an issue with regexes involving using the /K switch or other lookbehind style assertions.

Sigil 0.5.907 had a change made to F&R to address several legacy nasties, including intermittently replacing the wrong text or with \1 etc. Unfortunately that fix put in place is now "too strict" for this /K flag to work successfully. So we need to come up with a compromise between the approaches without letting the bugs come back or restricting what expressions can be used.

The reason why Replace All works is because it does the replace in a different way that does not involve selections and cursor positions on the screen (which are the cause of all the complications and issues that occur with an interactive Replace).
kiwidude is online now