P/S: I am a PHP programmer. Given:
div{3|5|6|9}[id = abc| class=image], a[id=link|class=out]
I want to use regex to generate a result as an array, e.g:
array(
[div] => array(
"3|5|6|9",
"id = abc| class=image"
)
[a] => array(
"",
"id=link|class=out")
)
Would anyone please help? Thank you a lot!