I'm looking for a solution that can convert my string bases on square bracker and commas, and replace bracket with (.) dot. Basically I need this to query database.
Input:
parent[child1[subchild1,subchild2], child2[subchild1,subchild2]]
Output:
parent.child1.subchild1
parent.child1.subchild2
parent.child2.subchild1
parent.child2.subchild2