See this sentence below:
A space of creation conceived as a <em>full</em>
attributed to myself.
You see that is no space before and after </em>
So, I need to find al words between html tags, that have no space before <em>
and after </em>
, and to make a replacement as to put a new space before/after.
Of course, the simple solution is to make a simple search and replace with (space)</em>(space)
, but a regex will be much better, so as not to be 2 spaces like can be in simple replace.
I try this, but I believe the replacement is not working:
FIND: (?!\w)(<em>.*?</em>)(?!\w)
REPLACE BY: \1 \2 \3