| Author |
Message |
Juan
Guest
|
Posted:
Sat Jan 08, 2005 2:59 am Post subject:
Regex Questions please. |
|
|
I have a script that reads a log file line by line.
In the log file I want to pull a date, and string of number similar to a mac
address.
The script starts of by creating the necessary object references
(fileSystemObject, New RegExp, etc)
Then it does 2 input msgboxes.
The first for a date
The second for the string of numbers
These are stored in variables for my regex patterns.
Now I have tried many different variations and usage with patterns but I
can’t seem to narrow down the pattern I want.
This is an example of the log file
1/1/2005 12:48:17 AM : Received update - Name: 09900935673, Device ID:
000001380038b7e3, IP:X.X.X.X
1/1/2005 12:50:14 AM : Received update - Name: 09900935681, Device ID:
0000013800389f56, IP: X.X.X.X
This log file is very big with many entries. The way string of numbers
(09900935673) and the date are how I can differentiate the log entries.
I want to be able to look at the read the log file match the pattern I want
for the date, and the string of numbers and dump the whole line.
Can anyone please help me?
Thank you,
Juan |
|
| Back to top |
|
 |
Ray Costanzo [MVP]
Guest
|
Posted:
Sat Jan 08, 2005 3:03 am Post subject:
Re: Regex Questions please. |
|
|
Please do not multipost.
--
Ray at work
Microsoft ASP/ASP.NET MVP
"Juan" <Juan@discussions.microsoft.com> wrote in message
news:9E8D9F95-2D06-417B-A071-7031E1065269@microsoft.com...
| Quote: |
I have a script that reads a log file line by line.
In the log file I want to pull a date, and string of number similar to a
mac
address.
The script starts of by creating the necessary object references
(fileSystemObject, New RegExp, etc) |
|
|
| Back to top |
|
 |
Juan
Guest
|
Posted:
Sat Jan 08, 2005 3:11 am Post subject:
Re: Regex Questions please. |
|
|
Thanks Ray for your MVP input.
Regards,
Juan
"Ray Costanzo [MVP]" wrote:
| Quote: | Please do not multipost.
--
Ray at work
Microsoft ASP/ASP.NET MVP
"Juan" <Juan@discussions.microsoft.com> wrote in message
news:9E8D9F95-2D06-417B-A071-7031E1065269@microsoft.com...
I have a script that reads a log file line by line.
In the log file I want to pull a date, and string of number similar to a
mac
address.
The script starts of by creating the necessary object references
(fileSystemObject, New RegExp, etc)
|
|
|
| Back to top |
|
 |
|
|
|
|