Regex Text Cleaning
Interview insights are lockedSee how often this is asked and which companies asked it with Buncho Pro.Explain split(), sub() and subn() from the re module. Write a cleaning function that removes URLs and extra whitespace, and tell me how many replacements it made. What are the regex pitfalls?