<?php $s = "#早上";preg_match_all('/(?<!\S)#\w*\p{L}\w*/u', $s, $m);print_r($m);
Standard input is empty
Array ( [0] => Array ( [0] => #早上 ) )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!