public class MiscUtil extends Object
Constructor and Description |
---|
MiscUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
normalizeEmailPlus(String input)
Normalize an email address, stripping any + component
|
static String |
normalizeEmailPlusDotStrip(String input)
Normalize an email address, stripping + component and any .
|
static Boolean |
validEmail(String input)
Validate email address format
|
public static Boolean validEmail(String input)
input
- Inputpublic static String normalizeEmailPlus(String input)
input
- Input stringpublic static String normalizeEmailPlusDotStrip(String input)
Should only be utilized in very specific circumstances as not all mail providers handle the . character the same way.
input
- Input stringCopyright © 2022. All rights reserved.