code: private synchronized static Pattern getWholeTagPattern(String tagName) {
  
  		Pattern pc = wholeTagPatterns.get(tagName);
  		if (pc == null) {
  
  			String tagPatString = "<\\s*" + tagName + "((>)|(\\s+[^>]*>))";
  
  			pc = Pattern.compile(tagPatString, Pattern.CASE_INSENSITIVE);
  			wholeTagPatterns.put(tagName, pc);
  		}
  		return pc;
  	}
docs: get (and cache) a regex Pattern for locating an entire HTML start tag.
  
  @param tagName
  @return Pattern to match the tag