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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -