Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parsing ideas, maybe regular expression search
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Parsing ideas, maybe regular expression search
Miscellaneous
Thread ID:
00882554
Message ID:
00882554
Views:
55
Hello,
Not quite sure how to accomplish this. I have a large text file that contains !! in various places. It also contains single !'s. I would like to look for just the single !'s. I didn't really want to get into the WScript regular expression thing ( for one, I wouldn't even know what the regular expression would look like ). Here is something along the lines of what I would like to do:
lnExcPts = occurs( '!', lcMyString )
for lnI = 1 to lnExcPts
     lnStart = at( '!', lcMyString, lnExcPts )
     *do some processing here
endfor
The problem is that this will find all occurences of !! as well. I only want the singles. I'm working on setting it up to read the character before and after the current one and checking for the extra !, but that just kinda seems cheesy to me. Got any idea's?

jfh
Next
Reply
Map
View

Click here to load this message in the networking platform