No, "*?" are the wildcards in rebol too.
But i have to correct me (there are lots of &#160 in the mail, that confuse=
d.)

Short experiment:

>> find/match/any "p3.htm.html" "p?.htm"
=3D=3D ".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"
=3D=3D 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"=20
=3D=3D false
!>> tail? find/match/any "p3.htm" "p?.htm"    =20
=3D=3D 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]
=3D=3D none
!>> all[pos: find/match/any "p3.htm" "p?.htm"   tail? pos]    =20
=3D=3D true
!>> all[pos: find/match/any "p3.htm" "ap?.htm"   tail? pos]
=3D=3D none

Not really nice, but seems to work.
HTH

Maybe=20
On 6/25/05, Kai Peters <[EMAIL PROTECTED]> wrote:
>  Thanks=3D guys!   So is this a bug then, or does '?' not=3D represent a =
single
> (character) entity as in most other languages/OSs I have=3D come across?
> &#160#160&#160;if find/match/any file=3D "p?.htm" [
> &#160;&#160;&#160;&#160;print file=3D     p1.htm p2.htm p3.htm p3.html.ht=
m >>
> TIA, Kai
> --
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
>=20
>=20


--=20
-Volker

"Any problem in computer science can be solved with another layer of
indirection. But that usually will create another problem." David
Wheeler
-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to