Signal9Signal9 — home
online
back to labs

Regex: Character Ranges

EasyRegular Expressions3-5 min
The brief

Extract every line that contains at least one digit from /root/work/data.txt into /root/work/out.txt.

Lines with no digits at all must not appear.

What you'll do
  • out.txt holds exactly the lines containing a digit

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