I have a string that can contain any number of underscores many times in the string as following.
String: "Test_test__test_test__"
I need output like following for building SQL query.
String: "Test[_]test[__]test[_]test[__]"
I need to find a solution using Javascript or C#.
Thanks