How to I rearrange AND delete text in regex?
I’m trying to convert BB Code into markdown. The problem is, I can’t figure out how to delete and rearrange text.
I have this:
I want to take everything in between
] and everything in between
and rearrange it as
But when I try, it results in this:
Source: JavaSript – Stack OverflowNovember 28, 2021