@SuppressWarnings("nls")
    private Pattern buildRegex(List<StripHeaderBean> itemList) {
        StringBuilder sb = new StringBuilder();
        String divider = "";

        for (StripHeaderBean stripHeader : itemList) {
            String pattern = StringUtils.strip(stripHeader.getPattern());
            sb.append(divider);
            sb.append(pattern);
            divider = "|";
        }

        return Pattern.compile(sb.toString(), Pattern.CASE_INSENSITIVE);
    }
Strip Headers
<p>
Removes header key and value pairs when pattern matches.

@param stripHeaders The stripHeaders
plugins/simple-header-policy/src/main/java/io/apiman/plugins/simpleheaderpolicy/beans/SimpleHeaderPolicyDefBean.java