Hey guys,
I was wondering what the best possible way it would be to parse a
string that is delimitted irregularly.
Basically, I'm going to parse a log file that will contain a nodename,
but the naming convention for the server varies...ie:
CLIN - DATACOM1
FOCUS - TESTSVR1
FCGSVR2
As you can see, some of the nodes are delimitted by a "-" and some are
not... The purpose of parsing this string will be to extract the client
name from the server. I'm needing to parse the client name from the
server and see if it matches in an array and have it output to a
specific queue.
As an example,
FCGSVR2 ** FCG would be the client in this instance
CLIN - DATACOM1 ** CLIN would be the client here
Is this possible at all?
Fast replies would greatly be appreciated... project deadline is
near..and i'm stumped!
This is what I have so far:
myarray = Split("BRMC - RME-A ")
Dim ClientArray (5)
ClientArray(0) = "AHA"
ClientArray(1) = "AVH"
ClientArray(2) = "BRMC"
ClientArray(3) = "CCS"
ClientArray(4) = "FCG"
ClientArray(5) = "FCGCORP"
i=2
myfilterarray = Filter(myarray, ClientArray(i), True)
msgbox Join(myfilterarray)
---
How would I make it loop through the Array until myfilterarray returns
a value that is true?