RegEx help on the replace side of things
I have this mostly figured out, I got it to work once (I'm pretty sure!) but can't seem to recreate it.
I want to change: <p><strong>text to change</strong></p>
so it reads: <p><strong><font2>text to change</font2></strong></p>
(<font2> is a tag I've created. It is defined, I've been using it for a few months without problem)
The text between the tags should not change. It could have one word, it could have four words, it could have ten words. There is nothing certain. I can create a regex to find all the possibilities, but in the replace, no matter what I've tried, it only puts in the last word, ignoring all others there might be.
Anyone have ideas?
One I've tried is (I'm basic and it could probably be done simpler but there you go...):
Find: <strong>([A-Za-z]+)</strong>
Replace: <strong><font2>\1</font2></strong>
I'm doing that off the top of my head and I feel I've forgotten something, but anyway, that's the gist of where I am.
Thanks for the help! OH, I've checked different manuals and websites, but I think I'm not searching for the right terms and can't find anything to help me...or at least not that I understand.
|