Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

question about findstr

2 views
Skip to first unread message

thinktwice

unread,
May 7, 2008, 8:14:59 AM5/7/08
to
i want to get the subversion revision number of my workingcopy.
(subversion is something like vss or cvs)

i find the revision number keeps in the "entries" file in the ".svn"
dir, it's format like this:
8dirxxxxhttp://
url...............................................................
.......................................................................................

i want to get the xxxx part , xxxx is a number. i think maybe it'll
change the format a little,like change 8 to other higher number. so i
want to search [1-9][0-9]*[a-z][1-9][0-9]* pattern. but i'm not
familiar how to use regularexpression in findstr. is there advanced
tutorial or example about how to use findstr?

Pegasus (MVP)

unread,
May 7, 2008, 9:46:45 AM5/7/08
to

"thinktwice" <memor...@gmail.com> wrote in message
news:3ceb3ca3-df12-45ad...@v26g2000prm.googlegroups.com...

Lots of stuff here:
Microsoft Beefs Up VBScript with Regular Expressions
http://msdn.microsoft.com/en-us/library/ms974570.aspx

RegEx workbench download
http://code.msdn.microsoft.com/RegexWorkbench/Release/ProjectReleases.aspx?ReleaseId=406

Library of regular expressions
http://regexlib.com/Default.aspx


thinktwice

unread,
May 7, 2008, 9:14:17 PM5/7/08
to
thanks Pegasus. helpful information.
On May 7, 9:46 pm, "Pegasus \(MVP\)" <I....@fly.com.oz> wrote:
> "thinktwice" <memorial...@gmail.com> wrote in message
> RegEx workbench downloadhttp://code.msdn.microsoft.com/RegexWorkbench/Release/ProjectReleases...
>
> Library of regular expressionshttp://regexlib.com/Default.aspx

ritchie

unread,
May 8, 2008, 8:48:43 AM5/8/08
to
thinktwice wrote:
> i want to get the subversion revision number of my workingcopy.
> (subversion is something like vss or cvs)

svn.exe might be a more reliable solution (in the zip file downloadable
from
http://subversion.tigris.org/files/documents/15/41094/svn-win32-1.4.6.zip)

for example:-

svn ls -v [filename]

--
ritchie, undo for mail

0 new messages