Thanks everyone .. I got it working.
Felice
-Original Message-
From: Castro, Edwin Gabriel (Firing Systems Engr.)
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 08, 2004 1:09 PM
To: Felice Vittoria; Nant-Users (E-mail)
Subject: RE: [Nant-users] regex help
Try something like this
Try something like this: pattern="(?'version'(\d+\.){3}\d+)"
That will get the entire version number. If you need more fine-grained
extraction you could try:
pattern="(?'major'\d+)\.(?'minor'\d+)\.(?'build'\d+)\.(?'revision'\d+)"
Of course, you should use whatever names make sense to your develo
Felice,
>>> Public Const TEST_VERSION As String = "Test Program 1.0.0.1"
Assuming you can have more than one digit in each of the four positions:
\d+\.\d+\.\d+\.\d+
because "\d" says "any digit" and the following "+" says "one or more."
Periods are regex characters representing any character,