How are regular expressions used to clean and standardize string data, and what are the risks?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how regular expressions are used to validate, extract and standardize messy string data, and where relying on them goes wrong. Tests knowledge of over-matching, edge cases, catastrophic backtracking and safeguards such as full matching, sample tests and dedicated parsers.