@Override
    public Object stringToValue(String string) throws ParseException {
        try {
            return Pattern.compile(string);
        } catch (final PatternSyntaxException e) {
            throw new ParseException(e.getMessage(), e.getIndex());
        }
    }
@Override
    public Object stringToValue(String string)