In Java you can write
. However in Scala,
is hidden by
which lacks this function. It's easy enough to switch to using the original Java version of a boolean, but that just doesn't seem right.
So what is the one-line, canonical solution in Scala for extracting
from a string?