Exercise : Sandwich Order (by Katlyn Edwards)
allows the user to order a sandwich.
Modify to use regular expressions to validate the order.
If the order is invalid, kill the page with a brief error message.
()
- Tip amount must be a non-negative real number with two digits after the decimal
- State must be a two-digit string of letters
- Address must begin with an integer followed by words, such as "1234 Fifth St"
- Sandwich type must be one of Turkey, Ham, BLT, or Roast Beef