Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def is_number(num_string):
- return bool(re.search(r'^[-+]?(\*\.?\d+|\d+\.)$', num_string))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement