0

I want to replace all spaces within square brackets to underscore. I was wondering how to do it. I tried: s.replaceAll("\[(\s*)\]","_"); but it doesn't replace the spaces.

Can anyone assist?

0 Answers0