question about findstr

  • Thread starter Thread starter thinktwice
  • Start date Start date
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?
 
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
 
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
 
Back
Top