Signal9Signal9 — home
online
back to labs

Regex: Capture Groups

MediumRegular Expressions5-10 min
The brief

Extract the domain from each email address in /root/work/emails.txt into /root/work/out.txt.

The domain is everything after the @. Output the domain by itself — not the whole address, and not the local part.

What you'll do
  • out.txt holds the domain part of each email

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