使用正则表达式在字符之间提取数据?

Pra*_*wal 5 javascript regex

我有一个类似的字符串 [[user.system.first_name]][[user.custom.luid]] blah blah

我想匹配user.system.first_nameuser.custom.luid

我建造/\[\[(\S+)\]\]/但它匹配user.system.first_name]][[user.custom.luid.

知道我做错了吗?