Although the question was marked as an answer two minutes after the request, I would like to add some information for the notes.
, , , Perl JavaScript, . :
/\s*;\s*/
:
/\s*;\s*/Ui
PHP Perl- (aka preg _... functions) . PHP , preg_split() /\s*;\s*/ . .
, , - , PHP . , :
@\s*;\s*@Ui
? , . :
/^\/home\/.*$/i
@^/home/.*$@i