I want to use grep to format text between tags like this
<em>Something bold</em> some more text <em>another bit of bold</em>
<em>Something bold</em> some more text <em>another bit of bold</em>
So I used (<em>)(\w+)(</em>) with $2 to change it but ended up with this:
Something bold some more text <em>another bit of bold</em>
Something bold some more text <em>another bit of bold</em>
I cannot fathom why the command is not working on the second piece of bold text. Any help would be appreaciated.