Are you looking to verify it's an email address?
You can use regex as a simple test, based on this Stack Overflow page
Or if you want to check the @ symbol is in the text, you can use
Both like this:
var email1 = "email@example.com"
var email2 = "me.here.com"
var email3 = "me@here"
func _ready() -> void:
var regex = RegEx.new()
print("@" in email1)
print("@" in email2)
print("@" in email3)
So the output of the above would be:
Only 1 valid email address, but 2 contain an @ symbol.
Hopefully, that's what you mean :)