@Override
    protected List<Pattern> derive(String value) {
        ArrayList<Pattern> ptns = new ArrayList<>();
        if (value != null) {
            for (String ptnTxt : value.split(",", -1)) {
                try {
                    ptns.add(Pattern.compile(ptnTxt.trim()));
                } catch (Exception e) {
                    LOG.error(
                            "Error parsing regex pattern list from property! name = {}, value = {}, pattern = {}",
                            String.valueOf(this.getName()),
                            String.valueOf(this.getValue()),
                            String.valueOf(value));
                }
            }
        }
        return ptns;
    }
User: michaels@netflix.com
Date: 5/15/17
Time: 4:38 PM
zuul-core/src/main/java/com/netflix/config/PatternListStringProperty.java