I am trying to create a email address regular expression that only accepts emails address ending with "@gbase.tt".
I tried: ^[A-Z0-9._%+-]+@gbase\.tt$
Why use a regular expression when you can test if the string ends with "@gbase.tt"?
But if you really must use a regex, try ^[email protected]$.
I'd start with a full regex for email, like the one found here.
(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\]) That expression clearly has the @ split in it, so keep the first half, and replace everything after the @ sign with gbase\.tt$.
Keep in mind that you've got to escape the dot since a dot by itself represents any character.
.at the domain:^[a-zA-Z0-9._%+-]+@gbase\.tt$- regexr.com?35qhk - But you really should use a tool, as your language probably already has it.