pattern='matchme!'
while IFS= read -r domain; do
url="$domain/matchme!"
curl -s "$url" | grep -q "$pattern" && printf '%s - %s\
' "$url" "$pattern" >> saveme.txt
done < domain.txt
Add `-F` to `grep`'s options if you're looking for a fixed string.