Translate American to Canadian by hallvabo (regexp)

_='(?<!f|w)or_beer_nse_(?<! oth| ent)er_oll_ram_beani_mom_mum_toqu_ramme_ol_re_nce_maple syrup_our'.split('_')
import os,re
s=os.read(0,439)
for p in _:s=re.sub(p,_.pop(),s)
print s

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page