class Valnzbn class Utils def self.valid_format?(number) number = number.to_s.gsub(/\D+/, '') !!(number =~/\A94\d{11}\z/) end end end