private void finalizeRePattern(String name,String rePattern){
  rePattern=rePattern.replaceFirst("\\|","");
  rePattern=rePattern.replaceAll("\\(([^\\?])","(?:$1");
  rePattern="(" + rePattern + ")";
  rePattern=rePattern.replaceAll("\\\\","\\\\\\\\");
  hmAllRePattern.put(name,rePattern);
}

private void finalizeRePattern ( String name , String rePattern ) { rePattern = rePattern . replaceFirst ( "\\|" , "" ) ; rePattern = rePattern . replaceAll ( "\\(([^\\?])" , "(?:$1" ) ; rePattern = "(" + rePattern + ")" ; rePattern = rePattern . replaceAll ( "\\\\" , "\\\\\\\\" ) ; hmAllRePattern . put ( name , rePattern ) ; }
pattern containing regular expression is finalized , i . e . , created correctly and added to hmallrepattern .
