Hi all, Im changing some perl code to C .
Please, prefer the best way to do below character string operations.
$n =~ s/^\D //g;
$o =~ s/[0-9].*//g;
$o =~ s/ /_/g;
$p =~ s/[^0-9]//g;
$p = substr($p,0,5);
$s =~ s/^\s //;
$s =~ s/\s $//;
$s =~ s/^\s |\s $//g;
Please, prefer the best way to do below character string operations.
$n =~ s/^\D //g;
$o =~ s/[0-9].*//g;
$o =~ s/ /_/g;
$p =~ s/[^0-9]//g;
$p = substr($p,0,5);
$s =~ s/^\s //;
$s =~ s/\s $//;
$s =~ s/^\s |\s $//g;
Vastaukset
Vanhimmat
Ei viela vastauksia.