Thread string formatieren
(8 answers)
Opened by eppi at 2017-11-19 19:10 Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 #!/usr/bin/perl use strict; use warnings; use 5.010; for (q(Name Vornamesip:0813893511@b2b.domain), q(0813893511sip:0813893511@b2b.domain)) { /(\w+ \w+)?sip:(\d+)\@.+$/; say '' . ($1 ? "$1 " : '') . $2; } Last edited: 2017-11-22 00:33:34 +0100 (CET) |