I want this out come
Input =|= Output
=============================================
[b] [/b] =|= [b][/b]
[b] [/b] =|= [b][/b]
[b]Hii[/b] =|= [b]Hii[/b]
[b]Hello There[/b] =|= [b]Hello There[/b]
I think the only way to solve this problem is regex which i dont know to write, so looking for help
Demo →