Code:
Randy has spent al <a id="page_540"/> most no time around military people.
Code:
Randy has spent <a id="page_540"/> almost no time around military people.
If you have any of the two situations in the same eBook, you cannot use regex to fix it as you'll be removing spaces you want to keep. So unless you are 100% sure the regex won't be getting rid of spaces, go for it. But even if .01% unsure, don't do it.