code: def keep_params_s(s, params):
          
          patt = '(?s)' + '|'.join(
              '(?<=\n)' + s + '\s*:.+?\n(?=\S+|$)' for s in params)
          return ''.join(re.findall(patt, '\n' + s.strip() + '\n')).rstrip()
docs: Keep the given parameters from a string
  
          Same as :meth:`keep_params` but does not use the :attr:`params`
          dictionary
  
          Parameters
          ----------
          s: str
              The string of the parameters like section
          params: list of str
              The parameter names to keep
  
          Returns
          -------
          str
              The modified string `s` with only the descriptions of `params`