View Single Post
Old Today, 09:50 AM   #3
enuddleyarbl
Guru
enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.enuddleyarbl ought to be getting tired of karma fortunes by now.
 
enuddleyarbl's Avatar
 
Posts: 960
Karma: 2111023
Join Date: Sep 2013
Device: Kobo Sage
Quote:
Originally Posted by peach View Post
... from <span class="italic">.*?</span> into <i>\1</i> but for whatever reason when i try to replace it now i get an error window saying IndexError:no such group...
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.

Last edited by enuddleyarbl; Today at 09:54 AM.
enuddleyarbl is online now   Reply With Quote