Task: Fix Python Regular Expression Word Boundary Matching
Task: Fix Python Regular Expression Word Boundary Matching: a task in Terminal-Lego-15k (Harbor dataset). In Python's re module, the \b metacharacter is used to match word boundaries in regular expressions. However, a common pitfall causes the following code to fail silently — re.search() returns…
The task
In Python's `re` module, the `\b` metacharacter is used to match word boundaries in regular expressions. However, a common pitfall causes the following code to fail silently — `re.search()` returns `None` instead of a match object:
Part of PrimeIntellect/Terminal-Lego-15k.