# [Japt v2], 22 bytes e/\[([^[]*?)](\d/@YpZ [Test it online!](https://ethproductions.github.io/japt/?v=2.0a0&code=ZS9cWyhbXltdKj8pXShcZC9AWXBa&input=Ilt0aHJlZVt0d29bb25lXTFdMl0zIg==) `e` is recursive replace, which makes one replacement at a time until there are no more matches. In this case, matches of the regex `/\[([^[]*?)](\d)/g` are replaced with with <inner text> repeated <digit> times until there are no more matches. According to what I have planned ([here](https://github.com/ETHproductions/japt/issues/28)), this regex should eventually be at least 3 bytes shorter: ‹[“⁽[»₋”]“\d› [Japt v2]: https://github.com/ETHproductions/japt