View Single Post
Old 12-16-2020, 01:36 PM   #26
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,849
Karma: 6120478
Join Date: Nov 2009
Device: many
The issues with regular expressions would be the need to capture and replace wildcard text and then to get users to properly regex escape any entries that use any regex special chars but do not want regex including (, ), *, !, ., ?.

Also since fully automated, regex could easily lead to unexpected matches and replacements. It is probably better used inside Find and Replace where you can say "no", just for safety sake.

Speed of python should not be an issue as this need not be done in real time, and is most likely once or twice perhaps with different lists.


Quote:
Originally Posted by elibrarian View Post
Placeholders and wildcards are not allowed in Atlantis (which is my main gripe withe the Atlantis implementation). Given it is made as a plugin, wouldn't Python's regex engine be able to handle something in that direction?

(I would have no objections to a plugin - would the plugin implementation be significant slower than a C++ implementation in the Sigil core if working with big files/many replacements?)

Regards,

Kim

Last edited by KevinH; 12-16-2020 at 01:39 PM.
KevinH is offline   Reply With Quote