Quote:
Originally Posted by Doitsu
If the spans are not nested the following simple regex should do the trick:
|
This needs to be stressed. Quite often span tags are NOT nested, and you might accidentally cause a lot of damage if you just do a large "Replace All".
(I have done it many times, and didn't notice until later when I was doing a few cleaning passes). Later wondering "why the heck is this entire paragraph in smallcaps?".
Always save versions of your EPUBs when doing larger edits like this.
For nested tags, you really just need something that can actually PARSE HTML, and not just Regex.