xxxxxxxxxx
# for <anything>.web-security-academy.net
^.*\.web-security-academy\.net.*$
# for all tld .com, .net, .in
^.*\.web-security-academy.*$
you can use below regex for any scope for target domain
xxxxxxxxxx
^.*?facebook\.com.*$
you can automate this process by below script
xxxxxxxxxx
nano reg.sh
# add below line and save
domain=$1
d1=$(cut -d "." -f1 <<< $domain)
d2=$(cut -d "." -f2 <<< $domain)
echo "^.*?$d1\.$d2.*$"
# usage
# bash reg.sh facebook.com