[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: Branko Čibej <brane_at_xbc.nu>
Date: 2002-12-08 21:14:24 CET

Nuutti Kotivuori wrote:

>Branko wrote:
>
>
>>The funny thing is that if you use re.match(str, N), where N>0, an
>>expression starting with "^" will never match -- because "^" matches
>>the beginning of a string
>>
>>
>
>...or after a newline, depending on the semantics of that particular
>regular expression engine (and flags given to it, if it owns such things).
>
Of course, but I didn't want to confuse people with multiline matches. :-)
So yes,

    re.compile("^", re.M).match("\n", 1)

does in fact match the empty string jst after the newline.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Dec 8 21:15:07 2002

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