Skip to content
Advertisement

removing or replacing comma from string imported from CSV Data where object is between bracket or any other Regex Javascript [closed]

I have searched in many places could not find a solution. I am importing Data from CSV file and then want to create array from this there for I want to replace comma delimiter with any other delimiter so when I split string object with comma should be as it is

I have a string:

JavaScript

I want to remove only those commas which are not between brackets ().

I have tried to do this with replace method but could not understand how to give condition for escaping value inside brackets.

Advertisement

Answer

I found My answer thank you for sawing interest in my question answer is

JavaScript

I did not understand formula correctly but it did the job if any one can elaborate this formula please post so other can understand formula

Advertisement