In message <[EMAIL PROTECTED]>, metaperl wrote: > There is also nothing wrong with > > re.match('blah', somestring) > > but it does read as well as > > re.atstartof('blah', something) > > and the counterpart for EOS is not there.
The only reason for those special cases for simple string matching is precisely because string matching is so simple and so limited. Whereas regular expressions give you so much more power--you can match at the start, at the end, somewhere in the middle, 3 characters from the end, and myriads of other possibilities. All of these can be succinctly expressed in the RE notation itself, so there's no need for lots of special-case calls. -- http://mail.python.org/mailman/listinfo/python-list