codestyle/src/main/java/se/jguru/nazgul/tools/codestyle/enforcer/rules/AbstractEnforcerRule.java
protected static List<Pattern> splice2Pattern(final String toSplice) throws PatternSyntaxException {

        final List<Pattern> toReturn = new ArrayList<Pattern>();

        for (final String current : splice(toSplice)) {
            toReturn.add(Pattern.compile(current));
        }

        return toReturn;
    }
protected static List<Pattern> splice2Pattern(final String toSplice) throws PatternSyntaxException {

        final List<Pattern> toReturn = new ArrayList<Pattern>();

        for (final String current : splice(toSplice)) {
            toReturn.add(Pattern.compile(current));
        }

        return toReturn;
    }
Helper method which splices the provided String into a List of Pattern instances.

@param toSplice The string to splice
@return A List holding the elements of the spliced string, converted to Patterns
@throws PatternSyntaxException if the {@code Pattern.compile} method could not compile the provided string.