[REBOL] Re: REBOL Cookbook in Beta
From: nitsch-lists:netcologne at: 29-Aug-2003 5:54
Am Donnerstag, 28. August 2003 23:25 schrieb [carl--rebol--com]:
> This is something I've wanted to do for a long time (about five years):
> The REBOL Cookbook.
>
> With the recent surge in new REBOL users, we've been getting feedback
> that there should be an easier way to learn REBOL from examples.
> New users don't want to read a 720 page manual. (Many of them are kids
> and young adults.) Sure the library at rebol.org is great, but beginners
> want more than just raw code - they need some help.
>
> So, check out http://www.rebol.net/cookbook/ to see the beta. And, if you
> feel like joining in, I welcome you and appreciate it greatly. Just dust
> off your favorite REBOL example, add a few notes, and post it to the
> cookbook (which is moderated by the way).
>
> Once we get 20 or 30 "recipes" we'll announce the Cookbook on the home
> page.
>
> Ah... it feels good to get this thing up and running finally. Let me know
> how it works for you.
>
Hi Carl. Good idea. Should we present drafts on mailing-list first, to keep
the cookbook clean?
Typo in the find example:
I have to reduce your expectations drastically, its not
text: find/ALL text "w?b"
its only
text: find/ANY text "w?b"
Eventually you could add the test-data inline, like
text: "Rebol says: Hello world!"
text: find/any text "h*o"
a hint that the wildcards are like file-wildcards would be good?
(do windows-users know about them? dos-users do.)
I try a patch of "notes":
!>>
The FIND function has several refinements that allow you to change the way the
search works. For example, you can make it case sensitive (/case) or search
for simple patterns (/any).
For example, rather than searching for the string web, you can search for
similar strings that have any character in the "e" position:
text: find/any text "h*o"
This works very similar to wildcards in file-boxes:
The ? matches any character. The * matches a lot of any characters.
(bad wording or funny?)
See the FIND function for more information.
To test, you can also set the string in the console.
Easier to write Tests:
text: "Rebol says: Hello world!"
text: find/any text "h*o"
The PARSE function can be used for much more complex types of searches
involving pattern matching.
(note: don't expect it to work like find (?))
<<!
> -Carl
-Volker