back to labs
Regex: Quantifier * (Zero or More)
MediumRegular Expressions5-10 minThe brief
Extract lines from /root/work/words.txt into /root/work/out.txt that contain either spelling: 'color' or 'colour'.
Match the text anywhere in the line, including inside a longer word (a line with 'colorful' or 'colourist' would count too). Treat the 'u' as repeatable rather than merely optional — 'colouur' counts too.
What you'll do
- out.txt holds exactly the lines containing 'color' or 'colour'
Hands-on lab: you work on a real Linux box in your browser, graded on the machine's actual state.
