I am having a string ">= 50.80"
I am trying split logical operator and float value using below
val result = ">= 50.80"
val Pattern = "(<[=>]?|==|>=?|\\&\\&|\\|\\|)".r
val Pattern(operator) = result
println(operator)
Error:
Exception in thread "main" scala.MatchError: >= 50.80 (of class java.lang.String).