i am a little new at using fso and reg expressions,
i am trying to open a file(see example below) using FSO and use reg expressions to parse out the first line 'No such host is known. <xtestx.com>' which can vary in content or not even exist, then i need to parse out the value 'keith@xtestx.com' after 'X-TrackerEmail:' , then i need to parse out the value '7FDBED87791505439D3E0EB423103B7F' after 'X-Tracker:'...these values will vary from file to file...after parsing the values from the example below:
No such host is known. <xtestx.com>
keith@xtestx.com
7FDBED87791505439D3E0EB423103B7F
i would like to have each parsed value be its own string for further processing
see file contents below for example:
----------------file start-------------------------------------
No such host is known. <xtestx.com>
x-receiver: <keith@xtestx.com>
x-sender: <keith@test.com>
Message-ID: <2471732-22002422234427640@xtestx.com>
X-EM-Version: 6, 0, 1, 0
X-EM-Registration: #00606305108119002B30
X-TrackerEmail: keith@xtestx.com
X-Tracker: 7FDBED87791505439D3E0EB423103B7F
From: "test" <keith@xtestx.com>
To: keith@xtestx.com
Subject: Dear K T ***TESTING1*
Date: Tue, 2 Apr 2002 18:44:27 -0500
MIME-Version: 1.0
Content-Type: multipart/alternative;
---------------file end------------------------------------
thanks for any help
it will be greatly appreciated
keith
i am trying to open a file(see example below) using FSO and use reg expressions to parse out the first line 'No such host is known. <xtestx.com>' which can vary in content or not even exist, then i need to parse out the value 'keith@xtestx.com' after 'X-TrackerEmail:' , then i need to parse out the value '7FDBED87791505439D3E0EB423103B7F' after 'X-Tracker:'...these values will vary from file to file...after parsing the values from the example below:
No such host is known. <xtestx.com>
keith@xtestx.com
7FDBED87791505439D3E0EB423103B7F
i would like to have each parsed value be its own string for further processing
see file contents below for example:
----------------file start-------------------------------------
No such host is known. <xtestx.com>
x-receiver: <keith@xtestx.com>
x-sender: <keith@test.com>
Message-ID: <2471732-22002422234427640@xtestx.com>
X-EM-Version: 6, 0, 1, 0
X-EM-Registration: #00606305108119002B30
X-TrackerEmail: keith@xtestx.com
X-Tracker: 7FDBED87791505439D3E0EB423103B7F
From: "test" <keith@xtestx.com>
To: keith@xtestx.com
Subject: Dear K T ***TESTING1*
Date: Tue, 2 Apr 2002 18:44:27 -0500
MIME-Version: 1.0
Content-Type: multipart/alternative;
---------------file end------------------------------------
thanks for any help
it will be greatly appreciated
keith