[Python-Dev] string.find() again (was Re: timsort for jython)

Greg Ewing greg@cosc.canterbury.ac.nz
Wed, 07 Aug 2002 14:56:47 +1200 (NZST)


jepler@unpythonic.net:

> Surely the re is the thing that expresses a set of strings ...
>     string in re
> would be the same as
>     re.match(string)
> 
> Oh, so
>     re in string
> would be
>     re.search(string)
> right?

That distinction might just be a tad too subtle...

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+