# [Scala](https://scala-lang.org), <s>73</s> 69 bytes

<!-- language: lang-scala -->

    "(\\d+)(.)".r.replaceSomeIn(_:String,m=>Some("$2"*m.group(1).toInt))

[Try it online!](https://scastie.scala-lang.org/BF2fTBqJTfmB7BTR9OXa6w)