Post History
jq, 32 27 bytes -5 bytes (thank you Razetime) .n as$n|.s/""|map(.*$n)|add Try it online!
Answer
#2: Post edited
# [jq], 32 bytes```js.n as$n|.s/""|map(.*$n)|join("")```[Try it online!][TIO-ktdplou8]- [jq]: https://stedolan.github.io/jq/
[TIO-ktdplou8]: https://tio.run/##yyr8/18vTyGxWCWvRq9YX0mpJjexQENPSyVPsyYrPzNPQ0lJ8///ai4FBaViJSslj9ScnHyF8PyinBQlHZBgnpKVEVctAA "jq – Try It Online"
- # [jq], <del>32</del> 27 bytes
- [-5 bytes (thank you Razetime)](https://codegolf.codidact.com/comments/thread/4450#comment-13500)
- .n as$n|.s/""|map(.*$n)|add
- [Try it online!][TIO-ktdvflto]
- [jq]: https://stedolan.github.io/jq/
- [TIO-ktdvflto]: https://tio.run/##yyr8/18vTyGxWCWvRq9YX0mpJjexQENPSyVPsyYxJeX//2ouBQWlYiUrJY/UnJx8hfD8opwUJR2QYJ6SlRFXLQA "jq – Try It Online"