I want to split it with this regular expression "/([{}[]])/" and get this as the result:the string wrote:{ i am between curly brackets } and im between nothing [ and im between square brackets ] and I am between nothing too
Code: Select all
array(
'{',
' i am between curly brackets ',
'}',
' and im between nothing ',
'[',
' and im between square brackets ',
']',
' and I am between nothing too'
)it's a bummer, this is the default behavior of python's re.split() method but I can't find a way to do it in php