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

Ron Teitelbaum ron at usmedrec.com
Thu Oct 24 17:30:25 UTC 2019


explode works too!

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

an OrderedCollection(' Middle-left-cell ' ' style="width: 14em;" |
Middle-center-cell ' ' Middle-right-cell')

make it back into a string with mergeDelimited: ''

:)

All the best,

Ron Teitelbaum

On Thu, Oct 24, 2019 at 12:49 PM tty <gettimothy at zoho.com> wrote:

> I found a workaround:
>
> (self copyReplaceTokens: '||' with:'@') subStrings:'@'
>
> Where the copyReplaceTokens: with: message replaces the double pipes. then
> the subStrings:'@' gives me the result I was looking for:
>
> #(' Middle-left-cell ' ' style="width: 14em;" | Middle-center-cell ' '
> Middle-right-cell')
>
>
>
>
>
> --
> Sent from: http://forum.world.st/Squeak-Beginners-f107673.html
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/beginners/attachments/20191024/8cff26ff/attachment.html>


More information about the Beginners mailing list