Question
A dataset contains customer email addresses, and you
need to validate the email format. Which of the following methods is most suitable for this task?Solution
Explanation: Regular Expressions (Regex) are a powerful tool for pattern matching and validation tasks, making them ideal for checking email formats. Regex allows the definition of patterns to identify valid email addresses, ensuring that they follow a format such as [email protected] . For example, the pattern: ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$ validates most standard email formats. Regex is versatile, efficient, and widely supported across programming languages, making it a preferred choice for data validation tasks involving string patterns. Option A: SQL queries are more suited for database operations like filtering and retrieving data but lack the flexibility of Regex for string pattern matching. Option C: Min-Max Normalization is a scaling technique and does not perform validation. Option D: PCA is a dimensionality reduction method and is unrelated to string validation tasks. Option E: Data Sharding involves dividing data into smaller chunks for storage and scalability, irrelevant to data validation.
Which of the following rivers flows north of the Tropic of Cancer in India?
Gandhiji delivered the famous 'Do or Die' speech on ______.
Match the concepts in column A with their respective descriptions in column B.
What did the Delhi government launch to combat air pollution in the national capital?Â
Hubbardia heptaneuron, which has become endangered, is a species of which of the following?
What was India’s rank in the Sustainable Development Report (SDG Index) released in mid-2024?
Which country holds the position of India's largest trading partner in the ASEAN region, with a trade value of USD 38 billion recorded in the previous ...
Whichof the following state is located Manas Wildlife Sanctuary?
What is the total number of Geographical Indications (GI) tags supported by NABARD? Â
Which of the following states is known as the Soyabean state of India?