I have the following regex, that I would like to pattern match in Scala 2.13.
The regex:
\/brokers\/ids\/\d{1,}$
The following string, that is going to be validate:
scala> ("echo dump" #| "nc localhost 32773" #| "grep brokers").!!
res2: String =
" /brokers/ids/1
"
How can I do it in Scala 2.13?