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
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
|