Hi Carlos Ingo's first example used find:
Index? find next find str #"*" #"*" If you insert ( )s it helps to see what's going on (though it would slow Rebol down) Index? (find (next (find str #"*")) #"*") Working from the inner parentheses (brackets) outward : 1. Find str #"*" sets the index of str at the first * found 2. Next ( ) sets the index of str to the next character 3. Find (( )) #"*" sets the index of str at the next * found 4. index? ((( ))) returns the value of the index as an integer. Hope this explanation helps. Peter -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos Lorenz Sent: 19 January 2005 02:15 To: [EMAIL PROTECTED] Subject: [REBOL] Re: Find? Copy/Part? Gabriele, The question is that I cannot figure out how to do it using find. Would you mind to give a help? On Tue, 18 Jan 2005 18:18:19 +0100, Gabriele Santilli <[EMAIL PROTECTED]> wrote: > > Hi Carlos, > > On Tuesday, January 18, 2005, 6:05:40 PM, you wrote: > > CL> Would it be very nice to have an AT-like native function in > CL> REBOL/Core, don't you think so? > > And what would it do, that FIND doesn't do already? > > Regards, > Gabriele. > -- > Gabriele Santilli <[EMAIL PROTECTED]> -- REBOL Programmer > Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/ > > -- > To unsubscribe from the list, just send an email to rebol-request at > rebol.com with unsubscribe as the subject. > > -- *:-.,_,.-:*'``'*:-.,_,.-: Carlos Lorenz *:-.,_,.-:*'``'*:-.,_,.-: -- To unsubscribe from the list, just send an email to rebol-request at rebol.com with unsubscribe as the subject. -- Internal Virus Database is out-of-date. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.6.11 - Release Date: 12/01/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.7.0 - Release Date: 17/01/2005 -- To unsubscribe from the list, just send an email to rebol-request at rebol.com with unsubscribe as the subject.
