I checked all the related post on Stackoverflow, but none of the answers helped. I have the following items in a list:
topics\Utmutatok\Uzemeltetoi_Utmutato.dita
topics\_Reuse\Definitions\FRP_CUST_PROD_properties.xml
topics\_Reuse\Definitions\FRP_properties.xml
topics\_Reuse\Definitions\FR_Definitions.dita
I use the following lines in my python file:
kifejezes5 = re.sub(r'^(?!(?:topics/_Reuse(.*?)|^$)$|$).*$', r'@@@@@.\1', kifejezes4)
The expressions work perfectly in Notepad++, but not in my script.
When I run my script I get the error mentioned in the title. Is there any possible workaround here?
?!and\1mean?topics\_Reuse\Definitions\FRP_CUST_PROD_properties.xml?@@@@@topics\_Reuse\Definitions\FRP_CUST_PROD_properties.xmlre.sub(r'^(?!(?:topics/_Reuse.*)?$).*$', r'@@@@@\g<0>', s)?