export const RegExRule = { alpha : /^[a-zA-Z]+$/ , alphaExits : /[a-zA-Z]/ , alphaWithSpace : /^[a-zA-Z\s]+$/ , macId : /^([0-9a-fA-F][0-9a-fA-F]:){5}([0-9a-fA-F][0-9a-fA-F])$/ , onlyDigit : /^[0-9]+$/ , isDigitExits : /[0-9]/ , lowerCase : /[a-z]/ , upperCase : /[A-Z]/ , specialCharacter : /[!`=+-_~;'@#$%^&*(),.?":{}|<>]/ , advancedEmail : /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/ , basicEmail : /^(([^<>()\[\]\\.,,:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ , alphaNumeric : /^[0-9a-zA-Z]+$/ , alphaNumericWithSpace : /^[0-9a-zA-Z\s]+$/ , hexColor : /^#?([0-9A-F]{3}|[0-9A-F]{6})$/i , strictHexColor : /^#?([0-9A-F]{3}|[0-9A-F]{6})$/i , float : /^(?:[-+]?(?:[0-9]+))?(?:\.[0-9]*)?(?:[eE][\+\-]?(?:[0-9]+))?$/ , decimal : /^[-+]?([0-9]+|\.[0-9]+|[0-9]+\.[0-9]+)$/ , hexaDecimal : /^[0-9A-F]+$/i , date : /^(?:(?:31(\/|-|\.)(?:0?[13578]|1[02]))\1|(?:(?:29|30)(\/|-|\.)(?:0?[1,3-9]|1[0-2])\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:29(\/|-|\.)0?2\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:0?[1-9]|1\d|2[0-8])(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$/ , time : /^([01]?[0-9]|2[0-3]):[0-5][0-9]$/ , timeWithSeconds : /^([01]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$/ , url : /^(https?:\/\/(?:www\.|(?!www)|(?!a-zA-Z))[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www)|(?!a-zA-Z))[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9]\.[^\s]{2,})$/ , localhostUrl : /^(https?:\/\/localhost\:([1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])|localhost\::([1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])|https?:\/\/localhost\::([1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))$/ , interanetUrl : /^(https?:\/\/[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9])$/ , ascii : /^[\x00-\x7F]+$/ , dataUri : /^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*?)$/i , lat : /^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/ , long : /^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/ , ipV4 : /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/ , ipV6 : /^((?:[a-fA-F\d]{1,4}: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