Created
December 14, 2021 18:51
-
-
Save jeffscottbrown/688799c622df993b28a0a6c4e3cc7a12 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String input = 'funnyplace' | |
String result = null | |
switch(input) { | |
case 'listed': | |
result = 'Not_listed' | |
break | |
case ~/fun.*place/: | |
result = 'FunPlace' | |
break | |
case ~/fun.*num/: | |
result = 'Num' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment