def pre_match(self):
return self.string[:self.match.start()]<EOL>
r"""
        Get whatever comes before the current match.

            >>> s = Scanner('test string')
            >>> s.skip(r'test')
            4
            >>> s.scan(r'\s')
            ' '
            >>> s.pre_match()
            'test'