Advertisement
treyhunner

Untitled

May 7th, 2016
355
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.09 KB | None | 0 0
  1. def is_number(num_string):
  2.     return bool(re.search(r'^[-+]?(\*\.?\d+|\d+\.)$', num_string))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement