const validPasswordRegex = '^(?=.*[a-z])(?=.*[0-9])(?=.*[A-Z])(?=.*\\W.*)[a-zA-Z0-9\\S]{8,255}$';
const validPriceRegex = '[0-9]';
const validAccountNumberRegex = '^[0-9]{4,20}$';
const validName = '[A-Za-záàâãéèêíïóôõöúçñÁÀÂÃÉÈÊÍÏÓÒÖÚÇÑ ]{2,255}$';
const validTitle = '[A-Za-z0-9áàâãéèêíïóôõöúçñÁÀÂÃÉÈÊÍÏÓÒÖÚÇÑ ]{4,255}$';
const apiVersion = 'v1.0.0';

function getPattern(index) {

    return dictionaryPattern[index]
}

const dictionaryPattern =
    {
        title: validTitle,
        name: validName,
        password: validPasswordRegex,
        accountNumber: validAccountNumberRegex,
        price: validPriceRegex
    };




