Signal9Signal9 — home
online
back to labs

Regex: Negated Character Classes

MediumRegular Expressions5-10 min
The brief

Extract config lines that do NOT start with a digit from /root/work/conf.txt into /root/work/out.txt.

Judge each line by its first character only.

What you'll do
  • out.txt holds exactly the lines whose first character is not a digit

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