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