how about find/match/any/tail
>> find/match/any/tail "p3.htm.html" "p?.htm" == none >> find/match/any/tail "p3.htm" "p?.htm" == "p3.htm" >> AR Anton Rolls wrote: >Yes, these cases are handled by the test: > > %"" = find/any/match file pattern > >eg. > > foreach file [ > %p1.htm > %p2.htm > %p33.htm > %p.htm.000 > ][ > if %"" = find/any/match file "p?.htm" [print file] > ] > >Anton. > > > >>So we have to adress that too: >> >> >>>>all[pos: find/match/any "p3.htm.html" "p?.htm" tail? pos] >>>> >>>> >>== none >> >> >>>>all[pos: find/match/any "p3.htm" "p?.htm" tail? pos] =20 >>>> >>>> >>== true >> >> >>>>all[pos: find/match/any "p3.htm" "ap?.htm" tail? pos] >>>> >>>> >>== none >> >>Not really nice, but seems to work. >>HTH >> >> > > > -- To unsubscribe from the list, just send an email to lists at rebol.com with unsubscribe as the subject.
