View Single Post
Old 09-21-2015, 03:02 PM   #59
gipsy
Connoisseur
gipsy began at the beginning.
 
Posts: 81
Karma: 10
Join Date: Nov 2013
Device: Kobo Aura HD
Hi,
I tried to add another span replacement. If you have a <span style="font-variant:small-caps;"> to replace it with \U\1\E but it doesn't work :P

I add a
Code:
				elif comboBox[i].get() == "Change to UPPER":
					tagtoprocess=spanTagList[i]+"(.*?)</span>"
					html=re.sub(tagtoprocess, r'\U\1\E', html)
and a "Change to UPPER" in cbChoices without any result of course.

I search and i found that if you want the
Code:
\Uabc\Edef
it must me writen as
Code:
re.search("abc".upper() + "def", var)
in python. But i can't get it to work with my zero coding abilities

Thanks!
gipsy is offline   Reply With Quote