Regular expressions are a standard feature in most languages these days, but they are somewhat of a no-no in Rebol land. Rebol has this superior, very user friendly parse function and they see Regexp-s as some archaic cryptic syntax that is also much more limited than parse expressions are.
And Rebol people are correct, regexps are worse and less powerful - but they can still be very useful and just the right medicine at times. Many times you just need that little cryptic but very terse and still quite standard, once you get the hang of it, regular expression to match, extract or replace some simple part of the text and you just don't want to deal with cleaner and more verbose solutions.
Below is a simple demo that for better or worse explores all the valid forms of Rye "sentences" you can make. Using the two Regexp related functions for the canvas.
I
haven't posted in a while but I am working on Rye on multiple fronts, just haven't completed it yet. I am working on an interesting way to build local Rye instances. Also on the Webview integration, on some API-s, like Stripe, full-text-search ...
Visit our github repo for more ...
Not strictly Rye, but I was also playing further with some Graph-based UI ideas ...
Komentarji
Objavite komentar