class_docstr: Given a parameterized object, return a proxy parameterized object
  holding only the parameters that match some filter criterion.
  
  A filter is supplied with the parameter name and the parameter
  object and must return a boolean. A regular expression filter has
  been supplied and may be used to search for parameters mentioning
  'bounds' as follows:
  
  filtered = ParamFilter(obj, ParamFilter.regexp_filter('bounds'))
  
  This may be used to filter documentation generated by param.
class_docstr_tok: ["Given","a","parameterized","object",",","return","a","proxy","parameterized","object","holding","only","the","parameters","that","match","some","filter","criterion",".","A","filter","is","supplied","with","the","parameter","name","and","the","parameter","object","and","must","return","a","boolean",".","A","regular","expression","filter","has","been","supplied","and","may","be","used","to","search","for","parameters","mentioning","'bounds","'","as","follows",":","filtered","=","ParamFilter","(","obj",",","ParamFilter.regexp_filter","(","'bounds","'",")",")","This","may","be","used","to","filter","documentation","generated","by","param","."]
docstr: Builds a parameter filter using the supplied pattern (may be a
  general Python regular expression)
docstr_tok: ["Builds","a","parameter","filter","using","the","supplied","pattern","(","may","be","a","general","Python","regular","expression",")"]
code: def regexp_filter(self_or_cls, pattern):
      """
      Builds a parameter filter using the supplied pattern (may be a
      general Python regular expression)
      """
  
      def inner_filter(name, p):
          name_match = re.search(pattern, name)
          if name_match is not None:
              return True
          if p.doc is not None:
              doc_match = re.search(pattern, p.doc)
              if doc_match is not None:
                  return True
          return False
  
      return inner_filter
  
imports: import re
  import textwrap
  import param
  from param.ipython import ParamPager
  from param.parameterized import bothmethod
  from .util import group_sanitizer, label_sanitizer
label_desc: Use image node_id 2 for calling the ParamFilter obj's underlying member method code with example usage: obj.regexp_filter(_or_cls, pattern) and returns: inner_filter, False, True, True