validatestringformat - Validate String Format
Validates if a given string is in provided format. Formats are :URL, email, IBAN, BIC, VAT, ISBN and Regular Expresssion.
format
string
Format to validate the string.
Possible values are: vat, url, email, iban, bic, isbn, regex
Example:
url
input
string
The string to be validated.
Example:
853746333B01
options
object
Additional options
Example:
{
"countryCode": "NL"
}
regex
string
Used to validate the input string. Only used if format is set to regex.
Example:
^[0-9]*$
countryCode
string
2 character country code. Only used if format is set to vat.
Possible values are: AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, EL, HU, IE, IT, LV, LT, LU, MT, NL, PL, PT, RO, SK, SI, ES, SE, XI
Example:
DE