34,333
edits
Changes
→Wildcards, Regular Expressions and Case Sensitivity in switch Statements
</pre>
Similarly, regular expressions may be used by specifying the ''-regex'' option when constructing the switch statement. In the following statement, regular expressions are using used to detect whether the value begins and ends with specific characters:
<pre>