python - Robbers language - translating back? -
so python robbers language question mentioned here:
i made python 'robber's language' translating programme, there way?
is great - , enjoying regex solution - there similar regex solution put robbers language in it's original word?
you can still use regex substitution pattern consonant followed o
, itself:
import re print re.sub(r'([bcdfghjklmnpqrstvwxyz])o\1', r'\1', 'tothohisos isos fofunon')
output
this fun
Comments
Post a Comment