I have a use case where I would like to extract certain string from an input in scala.
My input string looks something like:
asdwf:"ssdf", as232:"ss",ABC:"xxx",sdfsf234:"sdaf"
I would like to extract the xxx after ABC.
I tried defining a regex match pattern:
val Pattern = """ABC:"(.*)",""".r, but got ABC:"xxx",sdfsf234:"sdaf" as output string.
Anything I am not doing correctly?
Thanks.