Is it possible to filter the input value that is being matched to the elements in a Choose statement?

By embedding a vbscript replaceRegex command into the Choose statement used, it is possible to filter the data coming from the input text field and compare that value to the elements in the Choose statement.
 
choose(replaceRegex(inputField,"^0+",""), "1234|123 Main Street\nBuffalo, NY 14201|5678|987 Somewhere Ave\nKey Largo, FL 33037", "No Valid Code")
The value to match on the first choose element above is 1234. The replaceRegex statement detects and strips out any number of zeros at the beginning of the input value. So 0001234, 001234, 01234 entered in the input field, then the script will always return "123 Main Street\nBuffalo, NY 14201"
 
This example just illustrates how to do this using a regular expression pattern that matches any number of zeros at the beginning of the input string, but the regular expression could be altered to match any basic pattern in the input string, before that value is matched against the elements in the Choose statement.