I dont know about using wild cards, but what you have shown as an example would work well using a switch.
case "1 Week":
Textbox1.presence = "invisible";
case "2 Weeks":
Textbox2.presence = "invisible";
//you can enter a command if you wish to execute if none of the other conditions are met. This is kind of like an 'else'
You need to have default at the end. The switch works by looking at the value in the brackets and uses the value to find the 'case' and execute the commands. It is basically a much tidier if statement.