I have big prob with regular expressions in JAVA (spend 3 days!!!). this is my input string:
#sfondo: [#nome: 0, #imga: 0],#111: 222, #p: [#ciccio:aaa, #caio: bbb]
I need parse this string to array tree, must match like this:
group: #sfondo: [#nome: 0, #imga: 0]
group: #111: 222
group: #p: [#ciccio:aaa, #caio: bbb]
with or wythout nested brackets
I've tryed this:
"#(\\w+):(.*?[^,\]\[]+.*?),?"
but this group by each element separate with "," also inside brackets