
2 changed files with 20 additions and 1 deletions
@ -0,0 +1,16 @@
|
||||
<?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"; |
||||
|
||||
print $text; |
||||
$nlkorrekt = preg_replace('~\R~u', "\n", $text); // 2044 = / |
||||
//$suchmuster = '~[^-a-zA-Z0-9äüöÄÜÖß\s,;\.:()°%&²³µ€ç£èé=^_&$§"!+*#\?\t\n\r´`/]~m'; |
||||
$suchmuster = REGEX_FILTER; |
||||
$ersetzung = '?'; |
||||
$neuertext = preg_filter($suchmuster, $ersetzung, $nlkorrekt); |
||||
echo "Neuertext: \n-----\n$neuertext\n-------\n"; |
||||
echo "\x0023"; |
||||
print "".$suchmuster; |
||||
|
||||
?> |
Loading…
Reference in new issue