public PlaceholderReplacer(String searchString,String replacementString){
  this.source="(dummy)";
  Map<String,Integer> placeholderNameToIndex=Maps.newHashMap();
  this.searchPattern=createPattern(searchString,placeholderNameToIndex);
  this.replacement=createReplace(replacementString,placeholderNameToIndex);
}

public PlaceholderReplacer ( String searchString , String replacementString ) { this . source = "(dummy)" ; Map < String , Integer > placeholderNameToIndex = Maps . newHashMap ( ) ; this . searchPattern = createPattern ( searchString , placeholderNameToIndex ) ; this . replacement = createReplace ( replacementString , placeholderNameToIndex ) ; }
a lightweight way to try this class without the need to create files .
