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

[REBOL] Re: How to parse a filename using wildcards

From: santilli:gabriele:gmai:l at: 17-Jul-2007 8:28

2007/7/17, Alessandro Manotti <ale870-gmail.com>:
> 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.