java regular expression to extract content within square brackets

Viewed 65356

input line is below

Item(s): [item1.test],[item2.qa],[item3.production]

Can you help me write a Java regular expression to extract

item1.test,item2.qa,item3.production

from above input line?

3 Answers
Related