有人可以解释一下,为什么我的代码没有给我任何回报?
<?php
$text = '<article about="about_text" typeof="sioc:Item foaf:Document" class="node node-bildergalerie node-published node-not-promoted node-not-sticky author-lalala odd clearfix" id="node-bildergalerie-6835">';
$search_for = '(author\-.*?)\s';
$replace = '';
print preg_replace($search_for, $replace, $text);
?>