rgex
Version:
A powerful, chainable regex builder platform with comprehensive validation utilities
2 lines (1 loc) • 19.8 kB
JavaScript
var o={EMAIL:"^[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])?)*$",URL:"^https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()@:%_\\+.~#?&//=]*)$",PHONE:"^\\+?[1-9]\\d{4,14}$",DATE:"^\\d{4}-\\d{2}-\\d{2}$",TIME:"^([01]?[0-9]|2[0-3]):[0-5][0-9](:[0-5][0-9])?$",INTEGER:"^-?\\d+$",DECIMAL:"^-?\\d+(\\.\\d+)?$",POSITIVE_INTEGER:"^[1-9]\\d*$",POSITIVE_DECIMAL:"^([1-9]\\d*|0)(\\.\\d+)?$",UUID:"^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$",MONGO_ID:"^[0-9a-fA-F]{24}$",IPV4:"^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$",IPV6:"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]+|::(ffff(:0{1,4})?:)?((25[0-5]|(2[0-4]|1?[0-9])?[0-9])\\.){3}(25[0-5]|(2[0-4]|1?[0-9])?[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1?[0-9])?[0-9])\\.){3}(25[0-5]|(2[0-4]|1?[0-9])?[0-9]))$",DOMAIN:"^(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?.)+[a-zA-Z]{2,}$",MAC_ADDRESS:"^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$",HEX_COLOR:"^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$",SLUG:"^[a-z0-9]+(?:-[a-z0-9]+)*$",USERNAME:"^[a-zA-Z0-9_]{3,20}$",FILE_EXTENSION:"^.*\\.[a-zA-Z0-9]{1,10}$",IMAGE_FILE:"^.*\\.(jpg|jpeg|png|gif|bmp|svg|webp|ico)$",DOCUMENT_FILE:"^.*\\.(pdf|doc|docx|txt|rtf|odt)$",TIMESTAMP:"^[0-9]{10,13}$",ISO_DATETIME:"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{3})?Z?$",CREDIT_CARD:"^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|3[47][0-9]{13}|3[0-9]{13}|6(?:011|5[0-9]{2})[0-9]{12})$",VISA_CARD:"^4[0-9]{12}(?:[0-9]{3})?$",MASTERCARD:"^5[1-5][0-9]{14}$",AMEX:"^3[47][0-9]{13}$",PASSWORD:"^.{6,}$",STRONG_PASSWORD:`^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[!@#$%^&*()_+\\-=\\[\\]{};':"\\\\|,.<>\\/?]).{8,}$`,DIGITS_ONLY:"^\\d+$",LETTERS_ONLY:"^[a-zA-Z]+$",ALPHANUMERIC:"^[a-zA-Z0-9]+$",NO_SPACES:"^\\S+$",TEXT:`^[a-zA-Z0-9\\s.,!?;:'"-]+$`,US_ZIP_CODE:"^\\d{5}(-\\d{4})?$",CANADIAN_POSTAL_CODE:"^[A-Za-z]\\d[A-Za-z][ -]?\\d[A-Za-z]\\d$",UK_POSTCODE:"^[A-Z]{1,2}[0-9][A-Z0-9]? [0-9][ABD-HJLNP-UW-Z]{2}$",GERMAN_POSTCODE:"^\\d{5}$",FRENCH_POSTCODE:"^\\d{5}$",SSN:"^(?!666|000|9\\d{2})\\d{3}-(?!00)\\d{2}-(?!0{4})\\d{4}$",BASE64:"^[A-Za-z0-9+/]*={0,2}$",BITCOIN_ADDRESS:"^[13][a-km-zA-HJ-NP-Z1-9]{25,34}$",ETHEREUM_ADDRESS:"^0x[a-fA-F0-9]{40}$",IBAN:"^[A-Z]{2}[0-9]{2}[A-Z0-9]{4,30}$",SWIFT_CODE:"^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$",ISBN_10:"^(?:\\d{9}[\\dX]|\\d{10})$",ISBN_13:"^97[89]\\d{10}$",SEMVER:"^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$",JWT_TOKEN:"^[A-Za-z0-9-_]+\\.[A-Za-z0-9-_]+\\.[A-Za-z0-9-_.+/=]*$",GIT_COMMIT:"^[a-f0-9]{7,40}$",GITHUB_USERNAME:"^[a-z\\d](?:[a-z\\d]|-(?=[a-z\\d])){0,38}$",TWITTER_HANDLE:"^@?(\\w){1,15}$",DISCORD_ID:"^\\d{17,19}$",SLACK_USER_ID:"^U[A-Z0-9]{8,10}$",YOUTUBE_VIDEO_ID:"^[a-zA-Z0-9_-]{11}$",AWS_S3_BUCKET:"^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$",DOCKER_IMAGE:"^[a-z0-9]+(?:[._-][a-z0-9]+)*(?:\\/[a-z0-9]+(?:[._-][a-z0-9]+)*)*(?::[a-zA-Z0-9._-]+)?$",K8S_RESOURCE_NAME:"^[a-z0-9]([-a-z0-9]*[a-z0-9])?$",NPM_PACKAGE:"^(?:@[a-z0-9-*~][a-z0-9-*._~]*\\/)?[a-z0-9-~][a-z0-9-._~]*$",E164_PHONE:"^\\+[1-9]\\d{1,14}$",LINKEDIN_PROFILE:"^https:\\/\\/(www\\.)?linkedin\\.com\\/in\\/[a-zA-Z0-9-]+\\/?$",GOOGLE_DRIVE_ID:"^[a-zA-Z0-9-_]{25,}$",FIREBASE_PROJECT_ID:"^[a-z0-9-]{6,30}$",AZURE_RESOURCE_GROUP:"^[a-zA-Z0-9._()-]{1,90}$"},M={ipv6:{type:"custom",pattern:o.IPV6,description:"IPv6 address",examples:["2001:0db8:85a3:0000:0000:8a2e:0370:7334","::1"]},ipv4:{type:"custom",pattern:o.IPV4,description:"IPv4 address",examples:["192.168.1.1","127.0.0.1"]},macaddress:{type:"custom",pattern:o.MAC_ADDRESS,description:"MAC address",examples:["00:1B:44:11:3A:B7","00-1B-44-11-3A-B7"]},domain:{type:"custom",pattern:o.DOMAIN,description:"Domain name",examples:["example.com","subdomain.example.org"]},timestamp:{type:"custom",pattern:o.TIMESTAMP,description:"Unix timestamp",examples:["1640995200","1640995200000"]},datetime:{type:"custom",pattern:o.ISO_DATETIME,description:"ISO datetime format",examples:["2023-12-25T10:30:00Z","2023-12-25T10:30:00.123Z"]},time:{type:"time",pattern:o.TIME,description:"Time in HH:MM or HH:MM:SS format",examples:["14:30","09:15:30"]},ukpostcode:{type:"custom",pattern:o.UK_POSTCODE,description:"UK postcode",examples:["SW1A 1AA","M1 1AA","B33 8TH"]},germanpostcode:{type:"custom",pattern:o.GERMAN_POSTCODE,description:"German postcode",examples:["10115","80331","20095"]},frenchpostcode:{type:"custom",pattern:o.FRENCH_POSTCODE,description:"French postcode",examples:["75001","69001","13001"]},zipcode:{type:"custom",pattern:o.US_ZIP_CODE,description:"US ZIP code",examples:["12345","12345-6789"]},postalcode:{type:"custom",pattern:o.CANADIAN_POSTAL_CODE,description:"Canadian postal code",examples:["K1A 0A6","M5V 3L9"]},email:{type:"email",pattern:o.EMAIL,description:"Valid email address",examples:["user@example.com","test.email+tag@domain.co.uk"]},phone:{type:"phone",pattern:o.PHONE,description:"Phone number with optional country code",examples:["+1234567890","1234567890"]},url:{type:"url",pattern:o.URL,description:"HTTP or HTTPS URL",examples:["https://example.com","http://test.org/path"]},date:{type:"date",pattern:o.DATE,description:"Date in YYYY-MM-DD format",examples:["2023-12-25","2024-01-01"]},number:{type:"number",pattern:o.DECIMAL,description:"Integer or decimal number",examples:["123","-45.67","0.5"]},uuid:{type:"custom",pattern:o.UUID,description:"UUID (Universally Unique Identifier)",examples:["123e4567-e89b-12d3-a456-426614174000"]},guid:{type:"custom",pattern:o.UUID,description:"GUID (Globally Unique Identifier)",examples:["123e4567-e89b-12d3-a456-426614174000"]},hexcolor:{type:"custom",pattern:o.HEX_COLOR,description:"Hexadecimal color code",examples:["#ff0000","#f00"]},letters:{type:"text",pattern:o.LETTERS_ONLY,description:"Letters only (alphabetic characters)",examples:["abc","Hello","World"]},text:{type:"text",pattern:o.TEXT,description:"General text with letters, numbers, spaces, and common punctuation",examples:["hello world","Hello, World!","This is text."]},alphanumeric:{type:"text",pattern:o.ALPHANUMERIC,description:"Alphanumeric characters only (letters and numbers)",examples:["abc123","Test123","user1"]},password:{type:"custom",pattern:o.PASSWORD,description:"Basic password (minimum 6 characters)",examples:["password123","mypass"]},creditcard:{type:"custom",pattern:o.CREDIT_CARD,description:"Credit card number",examples:["4111111111111111","5555555555554444"]},visa:{type:"custom",pattern:o.VISA_CARD,description:"Visa credit card number",examples:["4111111111111111","4012888888881881"]},mastercard:{type:"custom",pattern:o.MASTERCARD,description:"Mastercard credit card number",examples:["5555555555554444","5105105105105100"]},username:{type:"text",pattern:o.USERNAME,description:"Username (3-20 characters, letters, numbers, underscores)",examples:["user123","john_doe","admin"]},ssn:{type:"custom",pattern:o.SSN,description:"US Social Security Number",examples:["123-45-6789","987-65-4321"]},fileextension:{type:"custom",pattern:o.FILE_EXTENSION,description:"File with extension",examples:["document.pdf","image.jpg","script.js"]},imagefile:{type:"custom",pattern:o.IMAGE_FILE,description:"Image file",examples:["photo.jpg","logo.png","icon.svg"]},documentfile:{type:"custom",pattern:o.DOCUMENT_FILE,description:"Document file",examples:["report.pdf","letter.doc","notes.txt"]}},H={email:["email","e-mail","mail address","@"],phone:["phone","telephone","mobile","cell"],url:["url","link","website","http","https","web address"],date:["date","yyyy-mm-dd","iso date"],number:["number","numeric","digit","integer","decimal"],uuid:["uuid","unique identifier"],guid:["guid","globally unique identifier"],ipv4:["ipv4","ipv4 address","ip v4","ip address"],hexcolor:["color","hex","hexadecimal","#","hex color"],letters:["letters only","alphabetic","letters","alpha","word"],text:["text","general text"],password:["password","pass","pwd"],creditcard:["credit card","creditcard","card number"],visa:["visa card","visa"],mastercard:["mastercard","master card"],username:["username","user name","handle"],ssn:["social security number","ssn","social security"],zipcode:["zip code","zipcode","zip"],postalcode:["canadian postal code","canada postal code","canadian postcode","postal code","postcode"],alphanumeric:["alphanumeric","alphanumeric characters","letters and numbers"],ipv6:["ipv6","ipv6 address","ip version 6","ip v6"],macaddress:["mac address","mac","hardware address","physical address"],domain:["domain","domain name","hostname"],fileextension:["file extension","file with extension","filename"],imagefile:["image file","image","picture file","photo file"],documentfile:["document file","document","text file"],timestamp:["timestamp","unix timestamp","epoch time"],datetime:["datetime","iso datetime","date time","timestamp iso"],time:["time format","hh:mm","hour","minute","time"],ukpostcode:["uk postcode","uk postal code","british postcode"],germanpostcode:["german postcode","german postal code","germany postcode"],frenchpostcode:["french postcode","french postal code","france postcode"]},W=["password","123456","qwerty","admin","login","welcome","dragon","princess","letmein","monkey","sunshine","master","shadow","football","baseball","superman","michael","ninja","mustang","computer"],Y=`!@#$%^&*()_+\\-=\\[\\]{};':"\\\\|,.<>\\/?`,u="[^\\w\\s]",K="[^\\x00-\\x7F]";var C={required:()=>({name:"required",pattern:/.+/,message:"This field is required",validator:(s)=>s.trim().length>0}),email:()=>({name:"email",pattern:new RegExp(o.EMAIL),message:"Please enter a valid email address"}),phone:()=>({name:"phone",pattern:new RegExp(o.PHONE),message:"Please enter a valid phone number"}),url:()=>({name:"url",pattern:new RegExp(o.URL),message:"Please enter a valid URL"}),minLength:(s)=>({name:"minLength",pattern:new RegExp(`.{${s},}`),message:`Minimum length is ${s} characters`,validator:(y)=>y.length>=s}),maxLength:(s)=>({name:"maxLength",pattern:new RegExp(`^.{0,${s}}$`),message:`Maximum length is ${s} characters`,validator:(y)=>y.length<=s}),numbersOnly:()=>({name:"numbersOnly",pattern:new RegExp(o.DIGITS_ONLY),message:"Only numbers are allowed"}),lettersOnly:()=>({name:"lettersOnly",pattern:new RegExp(o.LETTERS_ONLY),message:"Only letters are allowed"}),alphanumeric:()=>({name:"alphanumeric",pattern:new RegExp(o.ALPHANUMERIC),message:"Only letters and numbers are allowed"}),noSpaces:()=>({name:"noSpaces",pattern:new RegExp(o.NO_SPACES),message:"Spaces are not allowed"}),strongPassword:()=>({name:"strongPassword",pattern:new RegExp(o.STRONG_PASSWORD),message:"Password must contain uppercase, lowercase, number, and special character"}),uuid:()=>({name:"uuid",pattern:new RegExp(o.UUID,"i"),message:"Please enter a valid UUID"}),ipAddress:()=>({name:"ipAddress",pattern:new RegExp(`(${o.IPV4})|(${o.IPV6})`),message:"Please enter a valid IP address"}),date:()=>({name:"date",pattern:new RegExp(o.DATE),message:"Please enter a valid date (YYYY-MM-DD)",validator:(s)=>{if(!new RegExp(o.DATE).test(s))return!1;let y=new Date(s);return y instanceof Date&&!isNaN(y.getTime())}}),time:()=>({name:"time",pattern:new RegExp(o.TIME),message:"Please enter a valid time (HH:MM or HH:MM:SS)"}),hexColor:()=>({name:"hexColor",pattern:new RegExp(o.HEX_COLOR),message:"Please enter a valid hex color (#fff or #ffffff)"}),slug:()=>({name:"slug",pattern:new RegExp(o.SLUG),message:"Please enter a valid slug (lowercase letters, numbers, and hyphens only)"}),username:()=>({name:"username",pattern:new RegExp(o.USERNAME),message:"Username must be 3-20 characters long and contain only letters, numbers, and underscores"}),domain:()=>({name:"domain",pattern:new RegExp(o.DOMAIN),message:"Please enter a valid domain name"}),creditCard:()=>({name:"creditCard",pattern:new RegExp(o.CREDIT_CARD),message:"Please enter a valid credit card number"}),mongoId:()=>({name:"mongoId",pattern:new RegExp(o.MONGO_ID),message:"Please enter a valid MongoDB ObjectID"}),base64:()=>({name:"base64",pattern:new RegExp(o.BASE64),message:"Please enter a valid base64 encoded string",validator:(s)=>{try{return btoa(atob(s))===s}catch{return!1}}}),json:()=>({name:"json",pattern:/^[\s\S]*$/,message:"Please enter valid JSON",validator:(s)=>{try{return JSON.parse(s),!0}catch{return!1}}}),ssn:()=>({name:"ssn",pattern:new RegExp(o.SSN),message:"Please enter a valid Social Security Number (XXX-XX-XXXX)"}),zipCode:()=>({name:"zipCode",pattern:new RegExp(o.US_ZIP_CODE),message:"Please enter a valid ZIP code (12345 or 12345-6789)"}),postalCode:()=>({name:"postalCode",pattern:new RegExp(o.CANADIAN_POSTAL_CODE),message:"Please enter a valid postal code (A1A 1A1)"}),ukPostcode:()=>({name:"ukPostcode",pattern:new RegExp(o.UK_POSTCODE),message:"Please enter a valid UK postcode"}),fileExtension:()=>({name:"fileExtension",pattern:new RegExp(o.FILE_EXTENSION),message:"Please enter a valid file with extension"}),imageFile:()=>({name:"imageFile",pattern:new RegExp(o.IMAGE_FILE),message:"Please enter a valid image file (jpg, png, gif, etc.)"}),documentFile:()=>({name:"documentFile",pattern:new RegExp(o.DOCUMENT_FILE),message:"Please enter a valid document file (pdf, doc, txt, etc.)"}),timestamp:()=>({name:"timestamp",pattern:new RegExp(o.TIMESTAMP),message:"Please enter a valid timestamp"}),isoDateTime:()=>({name:"isoDateTime",pattern:new RegExp(o.ISO_DATETIME),message:"Please enter a valid ISO datetime (YYYY-MM-DDTHH:mm:ss.sssZ)"}),visaCard:()=>({name:"visaCard",pattern:new RegExp(o.VISA_CARD),message:"Please enter a valid Visa card number"}),masterCard:()=>({name:"masterCard",pattern:new RegExp(o.MASTERCARD),message:"Please enter a valid Mastercard number"}),amexCard:()=>({name:"amexCard",pattern:new RegExp(o.AMEX),message:"Please enter a valid American Express card number"}),macAddress:()=>({name:"macAddress",pattern:new RegExp(o.MAC_ADDRESS),message:"Please enter a valid MAC address (XX:XX:XX:XX:XX:XX)"}),bitcoinAddress:()=>({name:"bitcoinAddress",pattern:new RegExp(o.BITCOIN_ADDRESS),message:"Please enter a valid Bitcoin address"}),ethereumAddress:()=>({name:"ethereumAddress",pattern:new RegExp(o.ETHEREUM_ADDRESS),message:"Please enter a valid Ethereum address"}),iban:()=>({name:"iban",pattern:new RegExp(o.IBAN),message:"Please enter a valid IBAN code"}),swiftCode:()=>({name:"swiftCode",pattern:new RegExp(o.SWIFT_CODE),message:"Please enter a valid SWIFT/BIC code"}),isbn10:()=>({name:"isbn10",pattern:new RegExp(o.ISBN_10),message:"Please enter a valid ISBN-10 code"}),isbn13:()=>({name:"isbn13",pattern:new RegExp(o.ISBN_13),message:"Please enter a valid ISBN-13 code"}),semver:()=>({name:"semver",pattern:new RegExp(o.SEMVER),message:"Please enter a valid semantic version (X.Y.Z)"}),jwtToken:()=>({name:"jwtToken",pattern:new RegExp(o.JWT_TOKEN),message:"Please enter a valid JWT token"}),githubUsername:()=>({name:"githubUsername",pattern:new RegExp(o.GITHUB_USERNAME,"i"),message:"Please enter a valid GitHub username"}),twitterHandle:()=>({name:"twitterHandle",pattern:new RegExp(o.TWITTER_HANDLE),message:"Please enter a valid Twitter handle (max 15 characters)"}),discordId:()=>({name:"discordId",pattern:new RegExp(o.DISCORD_ID),message:"Please enter a valid Discord user ID"}),youtubeVideoId:()=>({name:"youtubeVideoId",pattern:new RegExp(o.YOUTUBE_VIDEO_ID),message:"Please enter a valid YouTube video ID"}),googleDriveId:()=>({name:"googleDriveId",pattern:new RegExp(o.GOOGLE_DRIVE_ID),message:"Please enter a valid Google Drive file ID"}),s3BucketName:()=>({name:"s3BucketName",pattern:new RegExp(o.AWS_S3_BUCKET),message:"Please enter a valid S3 bucket name (3-63 chars, lowercase)"}),dockerImage:()=>({name:"dockerImage",pattern:new RegExp(o.DOCKER_IMAGE),message:"Please enter a valid Docker image name"}),npmPackage:()=>({name:"npmPackage",pattern:new RegExp(o.NPM_PACKAGE),message:"Please enter a valid NPM package name"}),gitCommit:()=>({name:"gitCommit",pattern:new RegExp(o.GIT_COMMIT,"i"),message:"Please enter a valid Git commit hash"}),k8sResourceName:()=>({name:"k8sResourceName",pattern:new RegExp(o.K8S_RESOURCE_NAME),message:"Please enter a valid Kubernetes resource name"}),linkedinProfile:()=>({name:"linkedinProfile",pattern:new RegExp(o.LINKEDIN_PROFILE),message:"Please enter a valid LinkedIn profile URL"}),slackUserId:()=>({name:"slackUserId",pattern:new RegExp(o.SLACK_USER_ID),message:"Please enter a valid Slack user ID"}),e164Phone:()=>({name:"e164Phone",pattern:new RegExp(o.E164_PHONE),message:"Please enter a valid E.164 phone number (+1234567890)"}),firebaseProjectId:()=>({name:"firebaseProjectId",pattern:new RegExp(o.FIREBASE_PROJECT_ID),message:"Please enter a valid Firebase project ID"}),azureResourceGroup:()=>({name:"azureResourceGroup",pattern:new RegExp(o.AZURE_RESOURCE_GROUP),message:"Please enter a valid Azure resource group name"})},U={required:C.required,email:C.email,phone:C.phone,url:C.url,"numbers only":C.numbersOnly,"digits only":C.numbersOnly,"letters only":C.lettersOnly,alphabetic:C.lettersOnly,alphanumeric:C.alphanumeric,"no spaces":C.noSpaces,"strong password":C.strongPassword,uuid:C.uuid,guid:C.uuid,"ip address":C.ipAddress,date:C.date,time:C.time,"hex color":C.hexColor,color:C.hexColor,slug:C.slug,username:C.username,domain:C.domain,"credit card":C.creditCard,"mongo id":C.mongoId,"mongodb id":C.mongoId,base64:C.base64,json:C.json,ssn:C.ssn,"social security":C.ssn,"social security number":C.ssn,"zip code":C.zipCode,"postal code":C.postalCode,"uk postcode":C.ukPostcode,"file extension":C.fileExtension,"image file":C.imageFile,"document file":C.documentFile,timestamp:C.timestamp,"iso datetime":C.isoDateTime,"visa card":C.visaCard,mastercard:C.masterCard,"master card":C.masterCard,"amex card":C.amexCard,"american express":C.amexCard,"mac address":C.macAddress,"bitcoin address":C.bitcoinAddress,bitcoin:C.bitcoinAddress,"ethereum address":C.ethereumAddress,ethereum:C.ethereumAddress,iban:C.iban,"swift code":C.swiftCode,"bic code":C.swiftCode,"isbn 10":C.isbn10,isbn10:C.isbn10,"isbn 13":C.isbn13,isbn13:C.isbn13,semver:C.semver,"semantic version":C.semver,"jwt token":C.jwtToken,jwt:C.jwtToken,"github username":C.githubUsername,"twitter handle":C.twitterHandle,twitter:C.twitterHandle,"discord id":C.discordId,discord:C.discordId,"youtube video id":C.youtubeVideoId,"youtube id":C.youtubeVideoId,"google drive id":C.googleDriveId,"s3 bucket":C.s3BucketName,"s3 bucket name":C.s3BucketName,"docker image":C.dockerImage,"npm package":C.npmPackage,"git commit":C.gitCommit,"commit hash":C.gitCommit,"k8s resource":C.k8sResourceName,"kubernetes resource":C.k8sResourceName,"linkedin profile":C.linkedinProfile,linkedin:C.linkedinProfile,"slack user id":C.slackUserId,"slack id":C.slackUserId,"e164 phone":C.e164Phone,"international phone":C.e164Phone,"firebase project id":C.firebaseProjectId,firebase:C.firebaseProjectId,"azure resource group":C.azureResourceGroup,azure:C.azureResourceGroup},z={"min length":C.minLength,"max length":C.maxLength,"minimum length":C.minLength,"maximum length":C.maxLength};export{C as VALIDATION_PATTERNS,U as VALIDATION_KEYWORDS,K as UNICODE_RANGE,u as SYMBOLS,Y as SPECIAL_CHARS,o as REGEX_PATTERNS,H as PATTERN_KEYWORDS,z as LENGTH_PATTERNS,M as HUMAN_PATTERNS,W as COMMON_PASSWORDS};