code: public static String removeAll(final String text, final Pattern regex) {
          return replaceAll(text, regex, StringUtils.EMPTY);
      }
docs: <p>Removes each substring of the text String that matches the given regular expression pattern.</p>
  
  This method is a {@code null} safe equivalent to:
  <ul>
  <li>{@code pattern.matcher(text).replaceAll(StringUtils.EMPTY)}</li>
  </ul>
  
  <p>A {@code null} reference passed to this method is a no-op.</p>
  
  <pre>
  StringUtils.removeAll(null, *)      = null
  StringUtils.removeAll("any", (Pattern) null)  = "any"
  StringUtils.removeAll("any", Pattern.compile(""))    = "any"
  StringUtils.removeAll("any", Pattern.compile(".*"))  = ""
  StringUtils.removeAll("any", Pattern.compile(".+"))  = ""
  StringUtils.removeAll("abc", Pattern.compile(".?"))  = ""
  StringUtils.removeAll("A&lt;__&gt;\n&lt;__&gt;B", Pattern.compile("&lt;.*&gt;"))      = "A\nB"
  StringUtils.removeAll("A&lt;__&gt;\n&lt;__&gt;B", Pattern.compile("(?s)&lt;.*&gt;"))  = "AB"
  StringUtils.removeAll("A&lt;__&gt;\n&lt;__&gt;B", Pattern.compile("&lt;.*&gt;", Pattern.DOTALL))  = "AB"
  StringUtils.removeAll("ABCabc123abc", Pattern.compile("[a-z]"))     = "ABC123"
  </pre>
  
  @param text  text to remove from, may be null
  @param regex  the regular expression to which this string is to be matched
  @return  the text with any removes processed,
  {@code null} if null String input
  
  @see #replaceAll(String, Pattern, String)
  @see java.util.regex.Matcher#replaceAll(String)
  @see java.util.regex.Pattern