我需要特定正则表达式匹配的帮助。这是php。(编辑 wordpress 插件)
假设字符串是
"[youtube|sjdhskajxn|This is a string|This is also a string|44|55]"
我要提取
{0} -> youtube
{1} -> sjdhskajxn
{2} -> This is a string
{3} -> This is also a string
{4} -> 44
{5} -> 55
此外,要匹配的项目数也不会是恒定的。