question about findstr


T

thinktwice

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?
 
Ad

Advertisements

P

Pegasus \(MVP\)

thinktwice said:
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?
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
 
Ad

Advertisements

T

thinktwice

thanks Pegasus. helpful information.
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?
Lots of stuff here:
Microsoft Beefs Up VBScript with Regular Expressionshttp://msdn.microsoft.com/en-us/library/ms974570.aspx

RegEx workbench downloadhttp://code.msdn.microsoft.com/RegexWorkbench/Release/ProjectReleases...

Library of regular expressionshttp://regexlib.com/Default.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top