I would like to build a regex that grep all characters between [[xxx]], with new line.
[[dgghr]]
[[dfgdfgfd
dgfsdgdg]]
/\[\[([\s\S]+)\]\]/s
But this regex grep :
"df]]
[[df
d
gfdg"
I would like :
"dgghr" and "dfgdfgfd
dgfsdgdg"
I tried to exclude "]" character, without success :( Thank you for all. G.
Edit
I've just finded! Here the solution : String :
[[dgghr]]
[[dfgdfgfd
dgfsdgdg]]
Regex :
/\[\[([\s\S][^\]]+)\]\]/s
Output :
array('dgghr', 'dfgdfgfd
dgfsdgdg')
Thank you MariaDeleva and splash58 G.