Alan wrote:
> I'm fooling around with rebel/core and find the documentation skips around
a little to much for a bonehead like myself:
Forget all you thought you knew... :-) BTW, welcome to the list.
> I want to try a simple procedure: open a file, find a text marker in that
file, and replace the marker with text from a standing file.
Try this for files less than a couple of megabytes long:
[rebol []
File: read %file.txt
replace/all File "Text Marker" "Replacement Text"
write %file.txt File
]
> As I see it I need to open the file and make it a series so that I can
perform the remove and insert. Is this so?
Yes. That's done by 'read in the above code.
> I also want to strip out html comments. I thought I could access those
comments using the find/any specifying comments as "<!--*-->" but I don't
seem to have any luck.
Have a look at 'parse in the documentation.
> Could some kind soul please point me in the right direction?
No problem. Also have a look at http://www.rebol.org for more.
Andrew Martin
ICQ: 26227169
http://members.xoom.com/AndrewMartin/
-><-