const inputString = 'db.employee.find({"city":"Paris"},{"emp_id":1}'
const result = inputString.split(/\.|\[); // splitting based on . or [
Is there a way to split a string based on two delimiters, such as . and [? For example, if we have the following string:
//const inputString = 'db["employee"].find({"city":"Paris"},{"emp_id":1}'