<?php $comment = '#ああああ いいいいい #うううう'; preg_match('/#[^ ]+(?= .*(#.*$))/u', $comment, $arr); var_dump($arr);
You have javascript disabled. You will not be able to edit any code.