48.6k views
3 votes
What data type in a survey metric has the field validation option to validate email, IP address, phone number or URL?

a. String
b. Numeric
c. Regex
d. Boolean

1 Answer

3 votes

Final answer:

The Regex data type is used in survey metrics to validate emails, IP addresses, phone numbers, or URLs because it checks if user input follows specific patterns necessary for each type of data.

Step-by-step explanation:

In survey metrics, the data type that has the field validation option to validate emails, IP addresses, phone numbers, or URLs is Regex (short for regular expressions). This type of validation is used to check if the user input follows a certain pattern, such as the structure of an email, which is characterized by having sign and a domain name. For instance, a regular expression to validate an email address would check for these components and ensure they are in a valid format. Other data types like String, Numeric, and Boolean, do not inherently have the functionality to perform such pattern-based validation.

User Thule
by
8.4k points