View Single Post
Old 05-18-2025, 02:56 PM   #26
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
Posts: 270
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
Quote:
Originally Posted by Doitsu View Post
Both you and ElMiko apparently missed the following:
  • I wrote a simple Sigil regex search plugin
  • That plugin supports a third-party Python regex library called "regex"
  • The regex Python library supports variable-length lookbehínds
  • I.e. the plugin could be used as a stop-gap measure.
    (It'll search all files selected in the book browser and display the matches in the validation´window.)
I tried your plugin on my MacBook with success against the tests specified earlier in this thread.

My main problem was watching plugin runner's blue button oscillating backwards and forwards for several minutes before I remembered that you said something about having to select the regex engine.

I couldn't find where to make that selection. I finally tracked down a postage-stamp-sized GUI which had opened behind the main Sigil window.

Once I entered the regex in that gui, it worked well.

I've tried several times on my MacBook, and that little gui always hides away behind the main window.
philja is offline   Reply With Quote