View Single Post
Old Today, 11:13 AM   #4
peach
Junior Member
peach began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2026
Device: xteink x3
Quote:
Originally Posted by JSWolf View Post
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 View Post
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
peach is offline   Reply With Quote