var pattern = new RegExp(/^((8|\+7)[\-]?)?(\(?\d{3}\)?[\-]?)?[\d\-]{7,10}$/i);
RegExp(/^((8|\+7)[\-]?)?(\(?\d{3}=>9\d{2}\)?[\-]?)?[\d\-]{7,10}$/i);
/^((8|\+7)[\-]?)?(\(?9\d\d\)?[\-]?)?[\d\-]{7,10}$/i