[ad_1]
if you are expecting “.google.” then none of these options will work but this might:
word='www.wgoowglew.cowm'
print '.' + word.split('.')[1].replace('w', '') + '.'
[ad_2]
solved Remove lowercase letters from a string in python
[ad_1]
if you are expecting “.google.” then none of these options will work but this might:
word='www.wgoowglew.cowm'
print '.' + word.split('.')[1].replace('w', '') + '.'
[ad_2]
solved Remove lowercase letters from a string in python