My mistake, it's what I would have used in EditPadPro
The search was looking for _(.*)_
the brackets stores a group - everything in between the _'s
The replace then done the html tags replacing the \1 with whatever was stored
a good site to read through is
http://www.regular-expressions.info/