<?php $author = "Pan tadeusz - lipacz"; var_dump(preg_match("/^([\S\s]+)( - )([\s\S]+)$/", $author));
You have javascript disabled. You will not be able to edit any code.