switch with regex

kellywilson at nowhere.com kellywilson at nowhere.com
Sat Feb 25 15:50:04 PST 2006


In article <dtqosg$2l1q$1 at digitaldaemon.com>, BCS says...

>switch(str)
>{
>case "[Tt]his"~~:
>writef("Doing this");
>break;
>
>case "[Tt]hat"~~:
>writef("Doing this");

I'm guessing this "writef" statement is supposed to say "Doing That"??????

Just noticed it quickly ;)

Thanks,
K.Wilson





More information about the Digitalmars-d mailing list