So in an ebook I'm converting from html, I need to replace all the text between "//" with the same text, but italics tags in place of the slashes.
I've spent a few hours mashing my face into learning regex and I can't figure out what seems like a simple task. I even tried in Word, and couldn't manage it there either. Can anyone help?
For Example:
// How is this possible? // I wondered to myself. // I simply can't see how to do it. //
Needs to become:
<i>How is this possible?</i> I wondered to myself. <i>I simply can't see how to do it.</i>
Or
It's all over my head. // This is why I got a C in compsci. // I hope someone can help me.
Needs to become:
It's all over my head. <i>This is why I got a C in compsci.</i> I hope someone can help me.