Extract sub string from a string

Vino akashvino79 at gmail.com
Mon Nov 9 16:00:28 UTC 2020


Hi All,

    Request your help on how to extract sub string from a string, 
below is an example in PHP, need your help on how to do the same 
in D.

$text = "welcome2worldinfo";
$hg = strtoupper(substr($text , 0, 7).'-'.substr($text, 7, 
1).'-'.substr($text, 8, 5));
print_r($hg) \\ Output : WELCOME-2-WORLD

From,
Vino.B




More information about the Digitalmars-d-learn mailing list