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: url, email, iban, bic, vat, isbn, regex
Example:
url
input
string
The string to be validated.
Example:
https://1001fx.com
options
object
Additional options
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