hi alle,
gemäß https://www.rb-wolfhagen.de/content/dam/f0083-0/download-dokumente/SEPA/Zeichensatz SEPA-Zahlungen.pdf sind bei SEPA im Verwendungszweck folgende Zeichen erlaubt:
a b c d e f g h i j k l m n o p q r s t u v w x y z
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
0 1 2 3 4 5 6 7 8 9
/ - ? : ( ) . , ‚
+
Space
Was das kleine Komma nach dem Komma in der vorletzten Zeile ist, weiß ich nicht.
Ich habe jetzt probiert:
$dirty = '#*~;_}][{&%$§!\\';
$clean = 'a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9 / - ? : ( ) . , ‚ + ';
$dirtyAndClean = $dirty . $clean;
$sepaClean = preg_replace("/[^a-zA-Z0-9\/\-?:()\.‚‚+ ]/si", "", $dirtyAndClean);
var_dump($dirty);
var_dump($clean);
var_dump($sepaClean);
Ergebnis:
string(15) "#*~;_}][{&%$§!"
string(144) "a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9 / - ? : ( ) . , ‚ + "
string(143) "a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9 / - ? : ( ) . ‚ + "
Nur das kleine Extrakomma fehlt. Weiß jemand warum? Habe es versucht einzubauen, aber "funzt" nicht. Ist vielleicht auch kein Drama, weil ich es vermutlich eh nicht benutze.
Sonst noch irgendwelche Tipps zum Vorgehen überhaupt?
mfg
tami