I want to match all spaces that are inside every [[]]
in a string so I could use a replaceAll method and remove them.
Example input: text text [[ ia asd ]] [[asdasd]] dfgd dfaf sddgsd [[sss aaa]]
Expected output: text text [[iaasd]] [[asdasd]] dfgd dfaf sddgsd [[sssaaa]]
I thought of this: \[\[(\s*?)\]\]
which should match all spaces that are between double brackets but it doesn't match anything.
I also tried several other solutions to similar problems but non seemed to work.
Any clue what else could be used?