updated regex for is_number