replaceAllMapped (new RegExp(r"(\d+)(.)"), (m) => m.group(2) * int.parse(m.group(1))). DartPad Live Demo. Hah, too easy!
確定! 回上一頁