<?php $re = '/(?:\[(?=[^][]*])(\w+)|\G(?!^))\h+(\w+)="([^"]+)"/'; $str = '[shortcode name param1="value1" param2="value2" param3="value3"] [specs product="test" category="body"] [pricelist keyword="216"] [specs product="test2" category="network"]'; preg_match_all($re, $str, $matches); print_r($matches);
You have javascript disabled. You will not be able to edit any code.