it is better to say what you want
given input, expected output
people get by so nicely without REs some may not know them at all.
I suspect your second slash is off by a char but it hard to be sure :)
off hand I cant recall off hand if the trailing ? makes it longest or
shortest matching, also asumung ther is an inplicit 's' before first slash
... so one way that may be on the right track iis


parse/all string [
    some[thru "blah" mark:
        opt["." copy ext to " "
            (print ["."ext]
             remove/part :mark length? ext
            )
        ]
    ]

]


On Thu, 26 Feb 2004, Brondo, Greg wrote:

>
> Trying to wrap my mind around Rebol and now specifically the parse function.
> What I want to do is parse some data out of a webpage table so there is
> multiple rows.  I'm trying to figure out how to do this in Rebol like I
> would in say Perl, Ruby, PHP, Python (with a global capturing regex).
>
> In perl it would look like:
>
>       while( /<blah>(.*?)</blah>/g ) {
>               print $1;
>       }
>
>
> Any ideas?
>
> Greg B.
> --
> To unsubscribe from this list, just send an email to
> [EMAIL PROTECTED] with unsubscribe as the subject.
>
-- 
To unsubscribe from this list, just send an email to
[EMAIL PROTECTED] with unsubscribe as the subject.

Reply via email to