> if test ${address} ~= /^[a-zA-Z]\w*@[\w.]*$/ > then > echo "Yep, looks like an email address" Note that the regex above to validate the email address form is not even close to what it needs to be. If you're going to use it "live" it would need to be significantly more robust... -Peter