Re: ReadAll and RegExp
- From: "kstulce" <kstulce@xxxxxxxxx>
- Date: 21 Jul 2005 13:27:57 -0700
McKirahan,
Thanks for your reply.
I should rephrase some of my notes. I said "function", but it's
actually a special command for PlanetPress Watch to work with a
VBScript. When PlanetPress Watch captures the AS/400 ASCII data, it
makes a copy to a temp folder with a temp name and works off of the
temp file. The VBScript is actually grabbing the temp file, via the
PW_GetJobFilename command, and working with it.
Have you used Regular Expressions in a VBScript? I purchase the
program "RegExBuddy" to help me learn how to create the patterns, based
upon a text file, but the patterns that I have come up with, i.e.
re.Pattern = "(\r\n\x20)([A-Z\d]{12,18})", don't seem to be working,
even though I'm using expressions straight out of the VBScript CHM
manual from M$. This expression works fine in RegExBuddy, but doesn't
work in the script. I can use a pattern like "c." and it will pull up
a bunch of stuff.
For the ReadAll problem, I just switched to ReadLine in a Do Loop and
it's reading all of the data. This is probably better, as it is only
reading what it needs versus the entire datastream, which the majority
probably won't be needed.
Is there a way to move the pointer back to the top if the entire
datastream is read into a variable? It doesn't sound like there is,
but wanted to ask anyway. A colleague of mine said there is a way, but
of course he was driving and couldn't remember the commands off of the
top of his head.
Thanks again for your help.
--Ken
.
- Follow-Ups:
- Re: ReadAll and RegExp
- From: James Whitlow
- Re: ReadAll and RegExp
- References:
- ReadAll and RegExp
- From: kstulce
- Re: ReadAll and RegExp
- From: McKirahan
- ReadAll and RegExp
- Prev by Date: Re: ReadAll and RegExp
- Next by Date: Re: IE automation - how to tell when document is complete?
- Previous by thread: Re: ReadAll and RegExp
- Next by thread: Re: ReadAll and RegExp
- Index(es):
Relevant Pages
|