switch with regex

BCS BCS_member at pathlink.com
Sat Feb 25 15:22:56 PST 2006


Thoughts please:

pros?

cons?

why it won't work.

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

case "[Tt]hat"~~:
writef("Doing this");
break;

case ".*somthing.*"~~:
writef("Doing somthing");
break;

default:
writef("Doing nothing");
break;
}





More information about the Digitalmars-d mailing list