package n
object test6 {
class StrongString(str:String){
def isPhone(str:String): Boolean = {
val reg = "1[3-9]\\d{9}".r
reg.matches(str)
}
def isEmail : Boolean ={
}
}
implicit def stringToStrongString(str:String):StrongString={
new StrongString(str)
}
def main(args: Array[String]): Unit = {
}
}