I have two strings:
val s1: String = "aaa/$Y/$m/aaa_$Y$m$d" // this one has all three variables
val s2: String = "aaa/$Y/$m" // this one has only two variables
val myStrings: Seq[String] = Seq(s1, s2)
val myStringsUpdated: Seq[String] = myStrings.map(s => ???)
Can I inject Y, m, d values into s1, s2 dynamically so I get myStringsUpdated sequence?
m/d/Ycomes from a date object. You could use.formatmethod with your string pattern