Scala: How to use startsWith tests in match/case expression
Briefly

As shown in the following example, you can use the startsWith method on a String to match multiple possible patterns in a match expression.
In the last case statement, if there is no match with those startsWith tests, a default sub-title is shown.
Read at Alvinalexander
[
add
]
[
|
|
]