samedi 25 juin 2022

Howto do this in Dartt $current_segment =~ s/([a-zA-Z]+)\.([a-zA-Z]+)/$1 punto $2/g;

I do appreciate if anyone could help me with this seemingly easy question:

$someText =~ s/([a-zA-Z]+)\.([a-zA-Z]+)/$1 : $2/g;

This perl statement finds all patterns of the form www.xyz and changes them to www:xyz. I need an equivalent code in Dart; I am new to Dart. Thanks, Bid

Aucun commentaire:

Enregistrer un commentaire