I want a regex to extract the text between slashes which contain an equals '='
data/xx/yy/zz/date=20190506/xxx.json
-> date=20190506
I want a regex to extract the text between slashes which contain an equals '='
data/xx/yy/zz/date=20190506/xxx.json
-> date=20190506
Regex not needed.
val str = "data/x=x/yy/zz/date=20190506/xxx.json" //example string (modified)
str.split("/").filter(_.contains('='))
//res0: Array[String] = Array(x=x, date=20190506)