Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP and wildcard replacments
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
VFP and wildcard replacments
Miscellaneous
Thread ID:
00430839
Message ID:
00430839
Views:
48
It is good to see that you can think outside of the VFP-box. The messages regarding the use of VBscript were very educating.

In order to replace some of my program that do some search and replacing I would like to know how I can do the following:
a text file contains a huge number of records. The fields are seperated with a comma but the record is not seperated. The end is allways a date. What I want to do is to add a carriage return after the the date.

loreg = CREATEOBJECT('vbscript.regexp')
WITH loreg
.GLOBAL = .T.
.ignorecase = .T.
.PATTERN = '..\/..\/..'
lcoutstring = .REPLACE(onzin, '\1\2\3 ' + chr(13))
ENDWITH
Next
Reply
Map
View

Click here to load this message in the networking platform