Why do the same work about 'IndexOfAny' and 'indexOf' function?

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jan 7 08:02:24 PST 2015


FrankLike:

> But now I want to know in a string (like "hello.exe" or 
> "hello.a",or "hello.dll" or "hello.lib" ) whether contains any 
> of them: ["exe","dll","a","lib"].

Seems this:
http://rosettacode.org/wiki/File_extension_is_in_extensions_list#D

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list