"Pedro Graca" <hexkid@hotpop.com> wrote in message
news:c3299i$23l505$1@ID-203069.news.uni-berlin.de...[color=blue]
> [top-posting]
>
>
http://www.netmeister.org/news/learn2quote2.html
>
> [/top-posting]
>
> Ruby Tuesdays top-posted for the third time
> (corrected for the third time):
>[color=green]
> > "Pedro Graca" <hexkid@hotpop.com> wrote in message
> > news:c2t5qa$21lg5e$2@ID-203069.news.uni-berlin.de...[color=darkred]
> >> [Please do not top post]
> >> Ruby Tuesdays top-posted again (corrected again):
> >> > "Pedro Graca" <hexkid@hotpop.com> wrote in message
> >> > news:c2qt9t$1v9cla$1@ID-203069.news.uni-berlin.de...
> >> >> [Please do not top post]
> >> >> Ruby Tuesdays top-posted (corrected):
> >> >> > what's the alternative?
> >> >>
> >> >> One of the function on the fnmatch() manual page might do what you
> >> >> want.
> >> >> Or, at least, get you started with a solution.
> >> >>
> >> >> If you run into problems, post the code you made so far.
> >> >
> >> > I try to get the example in the manual to work, but no luck. As you
> >> > said, it might not be implemented during the compilation....
> >> > BTW: I'm using the Win32 version.
> >> >
> >> > Perhaps you know other alternative. Thanks
> >>
> >> The manual hints at glob()
> >> which hints at opendir(), readdir(), closedir()
> >>
> >> What did you try with any of these (or other) functions?
> >> >> If you run into problems, post the code you made so far.[/color]
> >
> > Hi Pedro, I thought I test it first before I did what you suggested.
> > I can't even get this to work... on win32 binaries. Thanks
> >
> ><?php
> > $color = "gray";
> > if (fnmatch("*gr[ae]y", $color)) {
> > echo "some form of gray ...";
> > }
> > ?>[/color]
>
> "Insanity: doing the same thing over and over again and expecting
> different results."
> ~Albert Einstein (1879 - 1955) (attributed)
>
>
> Applies to both you and me :(
> --
> --= my mail box only accepts =--
> --= Content-Type: text/plain =--
> --= Size below 10001 bytes =--[/color]
Sorry Pedro, I somehow do not understand what top post is. Now I do. Thanks.