Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Newbie find question ctd....

From: volker::nitsch::gmail::com at: 25-Jun-2005 23:30

No, "*?" are the wildcards in rebol too. But i have to correct me (there are lots of &#160 in the mail, that confused.) Short experiment:
>> find/match/any "p3.htm.html" "p?.htm"
== ".html" Oops, did not expect that. (Maybe not a bug, but a feature?) Lets check difference at start !>> find/match/any "ap3.htm.html" "p?.htm" == none At least this is ok. So /match does force a match at the beginning, but not at the end. Ok, then !>> tail? find/match/any "p3.htm.html" "p?.htm" == false !>> tail? find/match/any "p3.htm" "p?.htm" == true but if !>> tail? find/match/any "ap3.htm" "p?.htm" ** Script Error: tail? expected series argument of type: series port bitset ** Near: tail? find/match/any "ap3.htm" "p?.htm" 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] == true !>> all[pos: find/match/any "p3.htm" "ap?.htm" tail? pos] == none Not really nice, but seems to work. HTH Maybe On 6/25/05, Kai Peters <[kpeters--vu-ware--com]> wrote:
> Thanks= guys! So is this a bug then, or does '?' not= represent a single > (character) entity as in most other languages/OSs I have= come across? > &#160#160&#160;if find/match/any file= "p?.htm" [ > &#160;&#160;&#160;&#160;print file= p1.htm p2.htm p3.htm p3.html.htm >> > TIA, Kai > -- > To unsubscribe from the list, just send an email to > lists at with unsubscribe as the subject. >
-- -Volker Any problem in computer science can be solved with another layer of indirection. But that usually will create another problem. David Wheeler