I use a Python script with conditional replacement:
Search: (Alain)|(perroquet)|(vert)
Replace: (?1Elisabeth)(?2chat)?3gris et blanc
Search --> Replace by
Alain ---> Elisabeth
perroquet ---> chat
vert ---> gris et blanc
With Notepad++ and Python Script it’s OK
This texte
Alain
perroquet
vert
is replaced by
Elisabeth
chat
gris et blanc
But with Ptyhon Script it’s not OK
is replaced by
(?1Elisabeth)(?2chat)?3gris et blanc
(?1Elisabeth)(?2chat)?3gris et blanc
(?1Elisabeth)(?2chat)?3gris et blanc
Can you help me ?
Cyrillev
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You're right, sorry that's a bug. I'd missed a flag on the replacement that enables this form of replacement. I've added a fix and a test, I'll do a release later on today.
Thanks for reporting.
Dave.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I use a Python script with conditional replacement:
Search: (Alain)|(perroquet)|(vert)
Replace: (?1Elisabeth)(?2chat)?3gris et blanc
Search --> Replace by
Alain ---> Elisabeth
perroquet ---> chat
vert ---> gris et blanc
With Notepad++ and Python Script it’s OK
This texte
Alain
perroquet
vert
is replaced by
Elisabeth
chat
gris et blanc
But with Ptyhon Script it’s not OK
is replaced by
(?1Elisabeth)(?2chat)?3gris et blanc
(?1Elisabeth)(?2chat)?3gris et blanc
(?1Elisabeth)(?2chat)?3gris et blanc
Can you help me ?
Cyrillev
You're right, sorry that's a bug. I'd missed a flag on the replacement that enables this form of replacement. I've added a fix and a test, I'll do a release later on today.
Thanks for reporting.
Dave.
v1.0.2 fixes this, and is now available for download (you can just download the MSI again and reinstall).
ok thank you