or shorter
>> find/match/any/tail "somethingelse" "some*g" == none >> find/match/any/tail "something" "some*g" == "something" >> Gabriele Santilli wrote: > 2007/7/17, Alessandro Manotti <[EMAIL PROTECTED]>: > > >> I tried to use FIND/MATCH/ANY, but I found a... bug (?). >> > > Not a bug - FIND returns the end of the match. You can use TAIL? to > check if the whole string matched. > > >>> find/match/any "something" "some*g" >>> > == "" > >>> find/match/any "somethingelse" "some*g" >>> > == "else" > >>> tail? find/match/any "something" "some*g" >>> > == true > >>> tail? find/match/any "somethingelse" "some*g" >>> > == false > > HTH, > Gabriele. > -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
