コメント |
@DIV
<?
$txt = ' "aaa" -- ' . "\n";
$txt .= ' "bbb" "ccc" ' . "\n";
$txt .= ' "xxx" -- ' . "\n";
mb_regex_encoding("euc-jp");
$result = mb_ereg_replace( "([^\n-]*)--[^\n]*\n", "\\1\n", $txt );
print "<PRE>";
print $result;
print "</PRE>";
?>
OK
@END
|