[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn stat on new files

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-12-07 00:07:02 CET

Matt Kraai <kraai@alumni.cmu.edu> writes:
> I think using match implies a leading "^":
>
> If zero or more characters at the beginning of string match the
> regular expression pattern, return a corresponding MatchObject
> instance.[1]

You're right:

   $ python2
   Python 2.1 (#1, Apr 21 2001, 18:56:55)
   [GCC 2.96 20000731 (Red Hat Linux 7.0)] on linux2
   Type "copyright", "credits" or "license" for more information.
>>> import re
>>> re.match("newfile", "newfile")
   <SRE_Match object at 0x81300b0>
>>> re.match("newfile", " newfile")
>>>

Surprising! (To me, anyway).

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Dec 7 00:45:39 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.