package Ġbr . com . z up academy . jp cs ik . ch ave pix Ċ Ċ enum Ġclass ĠValid ador Ch ave Regex ( private Ġval Ġregex : ĠRegex ) Ġ{ ĊĊĠĠĠ ĠC PF ("^ [ 0 - 9 ]{ 1 1 }$ ". to Regex ()), ĊĠĠĠ ĠE MAIL (" (?: [ a - z 0 - 9 ! # \$ % & '* +/ =? ^ _` { |} ~ - ]+ (?: \\ .[ a - z 0 - 9 ! # \$ % & '* +/ =? ^ _` { |} ~ - ]+ )* | \" (?: [ \\ x 0 1 - \\ x 0 8 \\ x 0 b \\ x 0 c \\ x 0 e - \\ x 1 f \\ x 2 1 \\ x 2 3 - \\ x 5 b \\ x 5 d - \\ x 7 f ]| \\\\ [ \\ x 0 1 - \\ x 0 9 \\ x 0 b \\ x 0 c \\ x 0 e - \\ x 7 f ]) *\ ") @ (?: (?: [ a - z 0 - 9 ]( ?: [ a - z 0 - 9 - ]* [ a - z 0 - 9 ]) ? \\. )+ [ a - z 0 - 9 ]( ?: [ a - z 0 - 9 - ]* [ a - z 0 - 9 ]) ?| \\ [( ?: (?: 2 5 [ 0 - 5 ]| 2 [ 0 - 4 ][ 0 - 9 ] |[ 0 1 ]? [ 0 - 9 ][ 0 - 9 ] ?) \\. ){ 3 }( ?: 2 5 [ 0 - 5 ]| 2 [ 0 - 4 ][ 0 - 9 ] |[ 0 1 ]? [ 0 - 9 ][ 0 - 9 ]? |[ a - z 0 - 9 - ]* [ a - z 0 - 9 ]: (?: [ \\ x 0 1 - \\ x 0 8 \\ x 0 b \\ x 0 c \\ x 0 e - \\ x 1 f \\ x 2 1 - \\ x 5 a \\ x 5 3 - \\ x 7 f ]| \\\\ [ \\ x 0 1 - \\ x 0 9 \\ x 0 b \\ x 0 c \\ x 0 e - \\ x 7 f ]) +) \\ ]) ". to Regex ()), ĊĠĠĠ ĠTE LE F ONE ("^ + [ 1 - 9 ][ 0 - 9 ]\\ d { 1 , 1 4 }\ $ ". to Regex ()), ĊĠĠĠ ĠUUID ("[ a - f 0 - 9 ]{ 8 } (- [ a - f 0 - 9 ]{ 4 } ){ 4 }[ a - f 0 - 9 ]{ 8 }". to Regex ()); ĊĊĠĠĠ Ġ// Valid acao Ġpara Ġcada Ġtipo Ġde Ġch ave ĊĠĠĠ Ġfun Ġvalid ar ( value : ĠString ): ĠBoolean Ġ= Ġvalue . matches ( this . regex ) Ċ }