acclimatize -ise
authorize ,-ise
amortization , -ise
agonizing,-ise
aggrandizement -ise
>>> r="(\w+iz\w*)\s*,?\s*\-(is\w*)"
>>> [re.sub(r,"\\1",INPUT),re.sub(r,lambda x:x.group(1).replace("iz","is"),INPUT]
[acclimatize,acclimatise]
[authorize,authorise]
[amortization,amortisation]
[agonizing,agonising]
[aggrandizement,aggrandisement]
I am writing dictionary parser from HTML files lately, for few weeks.
Cheers,
Soe Min
2 comments:
လာဖတ္ေနတံုးဘဲ။
ေလ့လာသြားပါသည္--
ေကာင္းတယ္--
Post a Comment