Hello,
Thank you for your quick feedback
I would like to take this opportunity to thank you for your tool that I use for a few years ago.
Concerning the trouble, I use the lasted stable Smath Studio version : 0.99 build 7822
I import string from a csv file.
The strplit don't recognize the underscore.
However, the findstr does
If I use the strrep function to replace the underscore by the underscore in the string, the strplit recognize the underscore.
Please see below the extract :
text=mat("MM1_To_PM1_presence",1,1)
b_net:el(text,1)="MM1_To_PM1_presence"
strsplit(b_net,"\005F\" )=mat("MM1_To_PM1_presence",1,1)
findstr(b_net,"\005F\" )=mat(4,7,11,3,1)
b_net:strrep(b_net,"\005F\","\005F\" )="MM1\005F\To\005F\PM1\005F\presence"
strsplit(b_net,"\005F\" )=mat("MM1","To","PM1","presence",4,1)
findstr(b_net,"\005F\" )=mat(4,7,11,3,1)
I have this trouble since the lasted stable version.
With the previous stable version, 0.99 build 7610, the split function is ok :
text=mat("MM1_To_PM1_presence",1,1)
b_net:el(text,1)="MM1_To_PM1_presence"
strsplit(b_net,"_" )=mat("MM1","To","PM1","presence",4,1)
findstr(b_net,"\005F\" )=mat(4,7,11,3,1)
b_net:strrep(b_net,"\005F\","\005F\" )="MM1\005F\To\005F\PM1\005F\presence"
strsplit(b_net,"\005F\" )=mat("MM1","To","PM1","presence",4,1)
findstr(b_net,"\005F\" )=mat(4,7,11,3,1)
Please to not take into consideration the space before the parenthesis.
If not, there is a smiley "
.
Thanks
Bricemik