Dec 22 2017
12:09 PM
- last edited on
Apr 07 2022
04:50 PM
by
TechCommunityAP
Dec 22 2017
12:09 PM
- last edited on
Apr 07 2022
04:50 PM
by
TechCommunityAP
In many functional programming languages there is a way to do pattern matching, like F# has `match expression with`.
In my use case, I'd like to match a string to a set of strings/regexes and returning a value(a string):
```
```
The `iif` syntax is really ugly though. Is there a more concise way to find a string match and return a value?
Dec 24 2017 01:24 PM
Hi,
One of the string operators is matches that allow you to perform regular expression matches.
There are also other methods to check regular expressions.
Thanks,
Meir