def find_number(s):
 r = re.search('[+-]?(\\d+\\.?\\d*|\\.\\d+)([eE][+-]?\\d+)?', s)
 if (r is not None):
  return r.span(0)
 return None

def find_number ( s ) : r = re . search ( '[+-]?(\\d+\\.?\\d*|\\.\\d+)([eE][+-]?\\d+)?' , s ) if ( r is not None ) : return r . span ( 0 ) return None
returns none if there are no numbers in the string .