Quote:
Originally Posted by JSWolf
The code you want is...
Search: <span class="italic">(.*?)</span>
Replace: <i>\1</i>
An easier way to do it because spans like this can use different class names, use Otter's Editing Toolbag. It's an editor plugin that's very handy/useful. It easily lets you do what are are trying to do and more.
|
Quote:
Originally Posted by enuddleyarbl
Purely on the regex, if the initial search string is exactly what you're using, then you are, in fact, missing the group. You need to surround the .*? with parenthesis to define the group:
Code:
<span class="italic">(.*?)</span>
EDIT: Ninjad by 2 minutes.
|
thank you very much to both!
i didn't even think there was something wrong with the search code because the search itself was working fine and i was getting the error message when i was trying to replace it but you're absolutely right so thanks again