Validate String Regular Expression - Java

Asked

Viewed 51 times

1

Hello, I would like to validate a String in java received from an INPUT. This validation would be to determine whether the user actually typed a valid email in the following pattern:

"XXXXXXXX@YYYYYY.with" or "XXXXXXXX@YYYYYY.with.br"

Where [XXX.. and [YYY...] are valid characters and the total number of characters in the String does not exceed 50.

In my case when I arrive in the JAVA context I will already have the String filled with what the user typed.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.