Thread string formatieren (8 answers)
Opened by eppi at 2017-11-19 19:10

Gast payx
 2017-11-21 23:08
#187657 #187657
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)

View full thread string formatieren