PATTERN
The pattern that an email address should match.
The underlying value is ^\S+@\S+\.\S+$
.
Calling from Kotlin
Here's an example of calling this property from Kotlin code:
val actual: String = EmailAddress.PATTERN
val expected = "^\\S+@\\S+\\.\\S+\$"
assertEquals(expected, actual)
Content copied to clipboard
Calling from Java
Here's an example of calling this property from Java code:
final String actual = EmailAddress.PATTERN;
final String expected = "^\\S+@\\S+\\.\\S+$";
Assertions.assertEquals(expected, actual);
Content copied to clipboard