22 lines
643 B
PHP
22 lines
643 B
PHP
<?php
|
||
include 'const.php';
|
||
|
||
//$text = "#inlude<text.h>\nHallo\nLiebe #*sz_leute\näöü#+===)( snind Zeichen\nHier leer\n\n\n\r\n\t%Tock..----\n\nd";
|
||
$text = "bla blub\nsdsxy";
|
||
|
||
print $text;
|
||
$nlkorrekt = preg_replace('~\R~um', "\n", $text); // 2044 = /
|
||
//$suchmuster = '~[^-a-zA-Z0-9äüöÄÜÖß\s,;\.:()°%&²³µ€ç£èé=^_&$§"!+*#\?\t\n\r´`/]~m';
|
||
|
||
echo "=======\n";
|
||
echo $nlkorrekt;
|
||
echo "=======\n";
|
||
|
||
$suchmuster = REGEX_FILTER;
|
||
$ersetzung = '?';
|
||
$neuertext = preg_replace($suchmuster, $ersetzung, $nlkorrekt);
|
||
echo "Neuertext: \n-----\n$neuertext\n-------\n";
|
||
echo "\x0023";
|
||
print "".$suchmuster."\n";
|
||
|
||
?>
|