Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Continued comments ...
Message
From
24/03/2000 11:18:11
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00348010
Message ID:
00350029
Views:
42
>Paul,
>
> Yes, I agree. I just showed an example, that some of my colleagues avoiding comments at all. The code now is absolutely unreadable...
>
> BTW, question to ED. Several our programmers spent a lot of energy and time, doing different string manipulations, e.g. we have one string at the entry point of program and it should be converted using the standard pattern to another bigger string at the exit. Of course, the entry strings may vary in different ways (sometimes without pattern at all). Reading banch of Ed's messages recently, I have an impression, that it could be done automatically using WSH. Am I right? Is there a speed benefit also?
>

There is a COM object that is a part of WSH, VBScript.RegExp, that implements a regular expression parser that is capable of using complex regular expressions to alter string or extract complex portions of a string based on the regular expression rules defined in the object's Pattern property. I'm sure Mr. Frost can provide infinitely finer and more detailed support on this; my documentation of regular expression use and construction doesn't meet his minimally adequate level of description, and I'm certain he will donate his time to help you in any and all cases in the interest of enlightening us on how one should document a rgular expression's use. All I can do is recommend examining the documentation on the VBScript.RegExp object in the MSDN, recommend a book that I think has reasonably good coverage of the supported, "VBScript Programmer's Reference" from Wrox Press, and refer you to the sites related to the WSH and Wrox Press in my signature block. I'm sure he's capable of far more than this based on his previous commentary, since it is not VFP-specific, and the basics of regular expressions supported by the COM object are the same basic rules for syntax and behavior in the awk tool he referenced.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform