public RegexTemplate(String rawString){
  this.rawString=rawString.trim();
  String escaped=StringUtils.escape(rawString);
  String regex=constructRegex(escaped);
  pattern=Pattern.compile(regex,Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE);
  slots=getSlots(rawString);
}

public RegexTemplate ( String rawString ) { this . rawString = rawString . trim ( ) ; String escaped = StringUtils . escape ( rawString ) ; String regex = constructRegex ( escaped ) ; pattern = Pattern . compile ( regex , Pattern . CASE_INSENSITIVE | Pattern . UNICODE_CASE ) ; slots = getSlots ( rawString ) ; }
constructs the regular expression , based on the string representation .
