separate content between every brackets with new lines regex code example Example: regex between brackets multiline line /(?s){.*?}/mg