class RegexMapper {

    public String map(String s) {
        assert pattern != null;
        assert replacement != null;

        return Pattern.compile(pattern).matcher(s).replaceAll(replacement);
    }

    public  RegexMapper();
    public  RegexMapper(String pattern, String replacement);

}