>>>is there a quick way to inspect a text document and change all [1] to [01] and all [2] to [02] etc something along the lines of what i have set up below (which doesn't work) - or should i be looking at another approach altogether?
>>>
>>>cFile = Filetostr("C:\mytext.txt")
>>>
>>>cFile = Strtran(cFile,Chr(202),"E")
>>>
>>>cFile = strtran(cFile,"[5]","[05]")
>>>
>>>
>>>thanks k
>>
>>It looks like you may need to use RegEx here. Chrtran will not help. But I'm weak as to writing the correct pattern...
>
>mmmm i have heard of it in other programmiing platforms but whether there is a vfp equivalent would be useful.
>k
http://www.sweetpotatosoftware.com/spsblog/SearchView.aspx?q=regex