On this page
article
Regular Expressions Exercise #26
Practice regular expressions — exercise 26 of 30.
Topic: Regular Expressions
Difficulty: Advanced
Problem
Write a solution for Regular Expressions Exercise #26:
Implement a function solve_regex_26(data) that processes the input according to regular expressions concepts from the curriculum.
Example input: data = [regular expressions_example_26]
Expected: A transformed result demonstrating regular expressions skills.
Constraints
- Use idiomatic Python 3.10+
- Handle empty input gracefully
- Do not mutate input unless specified
Hint
Hint
Review Regular Expressions exercises and the related chapter in the Learning Path. Consider edge cases: empty collections, None, zero, negative numbers.
Test Yourself
# Write tests before implementing
assert solve_regex_26([]) is not None # define expected behavior
Next exercise: Regular Expressions Exercise #27