<?php $pattern = '/\\[switch[^\\]]*\\]/'; $subject = 'こんにちは。[feedback]おはよう。[switch]ありがとうございました。[switchcase]さようなら。'; $vars = preg_split($pattern, $subject); var_dump($vars);
You have javascript disabled. You will not be able to edit any code.