Hello, @mathenay-lankou and All,
Here is a regex solution :
Open your
list of strings. For instance :
France
Table
Street
England
StreetView
Open the Replace dialog ( Ctrl + H )
SEARCH (?-is)^(Street)$|(.*(?1).*)|(.+)
REPLACE $0(?1 100%)(?2 50%)(?3 0%)
Tick the Wrap around, preferably
Select the Regular expression search mode
Click on the Replace All button
=> You should get the expected list, below :
France 0%
Table 0%
Street 100%
England 0%
StreetView 50%
If I’m on the right way, I’ll explain you the regex details, next time ;-))
Best Regards,
guy038