erika/php/test.php
Your Name 04f52501e7 test
2021-01-23 17:14:13 +01:00

16 lines
552 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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;
?>