2 Replies Latest reply on Oct 15, 2009 9:05 AM by Handycam

    Wildcards in string matching?

    Handycam Level 1

      Right now I have a "fraction converter" class that looks, in part:

      case "6":
      case "66":
      case "67":
      case "68":
      case "666":
           theNumber = "2/3";

      Is there any way to use a wildcard or regex  in these case statements, so that I can say "6 followed by anything"?