[Newbies] subStrings:'|' vs subStrings:'||'

tty gettimothy at zoho.com
Thu Oct 24 15:50:30 UTC 2019


Hi all.

*' Middle-left-cell || style="width: 14em;" | Middle-center-cell ||
Middle-right-cell' self subStrings:'|'
' Middle-left-cell || style="width: 14em;" | Middle-center-cell ||
Middle-right-cell' self subStrings:'||'*

inspect both, they are identical.

Is this expected behavior?

Looking at the method:
char := sourceStream next.

is the "problem" in that a match is had for the single pipe character.

Is there a better way to split that string along double pipes '||'  ?

thank you in advance.





--
Sent from: http://forum.world.st/Squeak-Beginners-f107673.html


More information about the Beginners mailing list