If this was PHP, I would probably do something like this:
function no_more_half_widths($string){ $foo = array(\'1\',\'2\',\'3\',\'4\',\'5\',\'6\',\'7\',\'8
Regex approach
>>> import re >>> re.sub(u"[\uff10-\uff19]",lambda x:chr(ord(x.group(0))-0xfee0),u"456") u'456'