Quote:
Originally Posted by famfam
After saving the book with finereader as epub, words that were originally printed in block letters were represented as words with blanks (for example: W o r d or w o r d). In sigil, I would like to find with regex any W o r d or w o r d that are shown with spaces, and then replace the found words with spaces by the same words, but without spaces.
Maybe someone has an idea how to simplify this with regex?
|
I doubt there are many legitimate 4+ single characters by themselves:
Search: \b(\w) (\w) (\w) (\w)\b
Replace: \1\2\3\4
That should point you towards all of these spaced out words, so:
Find: a b c d
Replace: abcd
Or maybe you can start out with more \w... like 7 or 8 of them, then work your way down.