Signal9Signal9 — home
online
back to labs

Regex: Word Boundaries (\b)

MediumRegular Expressions5-10 min
The brief

Extract lines from /root/work/text.txt into /root/work/out.txt that use 'the' as a WHOLE word.

'other', 'them' and 'theory' merely contain those three letters, so a line does not qualify on their account.

What you'll do
  • out.txt holds exactly the lines using 'the' as a whole word

Hands-on lab: you work on a real Linux box in your browser, graded on the machine's actual state.