anilmuthineni / foxreplace

Automatically exported from code.google.com/p/foxreplace
0 stars 0 forks source link

Add exceptions to rules #158

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If I put a rule to replace 'ize' with 'ise' (Changing US English --> English), 
words like 'size' and 'citizen' get changed to 'sise' and 'citisen'.

What version of the product are you using?

v0.16.1

Please provide any additional information below.

If there were a feature to add exceptions to rules, I could list 'size' and 
'citizen' as exceptions and they won't be changed.

As it is right now, the way I see it: I need to add each and every single word 
with 'ize' that I want to change to 'ise' separately. That's ridiculously 
inconvenient.

Original issue reported on code.google.com by dammy...@gmail.com on 14 Mar 2015 at 4:27

GoogleCodeExporter commented 9 years ago
Whoooops. I just realised how to do this in FoxReplace: add another 
substitution group after the first one with 'sise'-->'size' and 
'citisen'-->'citizen'.

Issue resolved. My bad.

Original comment by dammy...@gmail.com on 14 Mar 2015 at 5:51

GoogleCodeExporter commented 9 years ago
In the general case you can use regular expression to refine what things to 
change and what not, without exceptions. But if your solution works for you in 
this case it's also a good option.

Original comment by marc.r...@gmail.com on 14 Mar 2015 at 2:54