I need help with a particular regex match. This is php. (Editing a wordpress plugin)
Let's say the string is
"[youtube|sjdhskajxn|This is a string|This is also a string|44|55]"
I want to extract
{0} -> youtube
{1} -> sjdhskajxn
{2} -> This is a string
{3} -> This is also a string
{4} -> 44
{5} -> 55
Also the number of items to be matched will not be constant.