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 companies is listed on the New York Stock Exchange (NYSE)?
Which of the following is NOT correct?Â
Who was given Dronacharya Award 2021 (Regular Category) for boxing?Â
Which country is hosting the ICC Men’s Champions Trophy 2025?
Where was the Badminton Asia Team Championship 2024 held in February 2024 where the Indian women’s team won gold?
As per the recommendation of Internal Working Group headed by PK Mohanty, how much should be the minimum paid up capital of a Small Finance Bank?Â
Which city is called lake city in M.P?
In which year did the journey of Exchange Traded Funds (ETFs) commence in India, marked by the launch of the first ETF by Nippon India Mutual Fund base...
What is the minimum holding period for KYC compliance in India?
Match List-I with List-II: