def _strip_to_integer(trigger):
 return int(''.join([x for x in trigger if x.isdigit()]))

def _strip_to_integer ( trigger ) : return int ( '' . join ( [ x for x in trigger if x . isdigit ( ) ] ) )
return only the integer part of a string .