public class RegexpValidator extends Object
| Constructor and Description |
|---|
RegexpValidator() |
| Modifier and Type | Method and Description |
|---|---|
static void |
throwIfPatternInvalid(String pattern)
Tries to compile the passed regular expression pattern.
|
public static void throwIfPatternInvalid(String pattern) throws ValidationException
Tries to compile the passed regular expression pattern.
This method will throw specified exception if passed pattern fails to compile.
pattern - The pattern to validate.ValidationException - Thrown in case there was a problem compiling passed pattern.Copyright © 2016–2020. All rights reserved.