On Thursday, September 18, 2003, at 04:47 AM, Jakob Peterh�nsel wrote:

LINE OFF
EXPT "${String to verify}"i else goto @NO_MATCH
MTCH m"([0-9]\.[0-9]+)"i else goto #+2
STOR "Version" "${1}"
MTCH m"[0-9]\sdays,\s.*" else goto #+2
STOR "Uptime" "${1}"
DONE OKAY

The line:


MTCH m"[0-9]\sdays,\s.*" else goto #+2

does not contain parentheses, so ${1} will not be defined as anything. You may simply have to type it like this (note the i for case-insensitive):

MTCH m"([0-9])\sdays,\s.*"i else goto #+2

If you can get the first MTCH command to match, it might be easier for you to use one regular expression:

MTCH m"version\s(#+.#+)\#uptime\s(#+\sdays,\s##:##:##)"i else #+2
STOR "Version" "${1}"
STOR "Uptime" "${2}"

Note that # can be used for digit [0-9]. It has to be escaped to match # exactly.

Bill Fisher
Dartware, LLC
http://www.dartware.com

____________________________________________________________________
List archives: http://www.mail-archive.com/intermapper-talk%40list.dartware.com/
To unsubscribe: send email to: [EMAIL PROTECTED]

Reply via email to