parameters: (pat=r'[-.\d]+', ignore='', start='')
return_statement: return matcher
docstring: Simple matching of version numbers, for use in CCompiler and FCompiler.
  
      Parameters
      ----------
      pat : str, optional
          A regular expression matching version numbers.
          Default is ``r'[-.\\d]+'``.
      ignore : str, optional
          A regular expression matching patterns to skip.
          Default is ``''``, in which case nothing is skipped.
      start : str, optional
          A regular expression matching the start of where to start looking
          for version numbers.
          Default is ``''``, in which case searching is started at the
          beginning of the version string given to `matcher`.
  
      Returns
      -------
      matcher : callable
          A function that is appropriate to use as the ``.version_match``
          attribute of a `CCompiler` class. `matcher` takes a single parameter,
          a version string.
docstring_summary: Simple matching of version numbers, for use in CCompiler and FCompiler.
docstring_tokens: Simple matching of version numbers for use in CCompiler and FCompiler .
function: def simple_version_match(pat=r'[-.\d]+', ignore='', start=''):
      """
      Simple matching of version numbers, for use in CCompiler and FCompiler.
  
      Parameters
      ----------
      pat : str, optional
          A regular expression matching version numbers.
          Default is ``r'[-.\\d]+'``.
      ignore : str, optional
          A regular expression matching patterns to skip.
          Default is ``''``, in which case nothing is skipped.
      start : str, optional
          A regular expression matching the start of where to start looking
          for version numbers.
          Default is ``''``, in which case searching is started at the
          beginning of the version string given to `matcher`.
  
      Returns
      -------
      matcher : callable
          A function that is appropriate to use as the ``.version_match``
          attribute of a `CCompiler` class. `matcher` takes a single parameter,
          a version string.
  
      """
      def matcher(self, version_string):
          # version string may appear in the second line, so getting rid
          # of new lines:
          version_string = version_string.replace('\n', ' ')
          pos = 0
          if start:
              m = re.match(start, version_string)
              if not m:
                  return None
              pos = m.end()
          while True:
              m = re.search(pat, version_string[pos:])
              if not m:
                  return None
              if ignore and re.match(ignore, m.group(0)):
                  pos = m.end()
                  continue
              break
          return m.group(0)
      return matcher
function_tokens: def simple_version_match ( pat = r'[-.\d]+' , ignore = '' , start = '' ) : def matcher ( self , version_string ) : # version string may appear in the second line, so getting rid # of new lines: version_string = version_string . replace ( '\n' , ' ' ) pos = 0 if start : m = re . match ( start , version_string ) if not m : return None pos = m . end ( ) while True : m = re . search ( pat , version_string [ pos : ] ) if not m : return None if ignore and re . match ( ignore , m . group ( 0 ) ) : pos = m . end ( ) continue break return m . group ( 0 ) return matcher