<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://95.179.246.60/mediawiki/index.php?action=history&amp;feed=atom&amp;title=String_splitting</id>
	<title>String splitting - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://95.179.246.60/mediawiki/index.php?action=history&amp;feed=atom&amp;title=String_splitting"/>
	<link rel="alternate" type="text/html" href="http://95.179.246.60/mediawiki/index.php?title=String_splitting&amp;action=history"/>
	<updated>2026-05-08T12:44:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>http://95.179.246.60/mediawiki/index.php?title=String_splitting&amp;diff=160&amp;oldid=prev</id>
		<title>Nmingott: highlithg</title>
		<link rel="alternate" type="text/html" href="http://95.179.246.60/mediawiki/index.php?title=String_splitting&amp;diff=160&amp;oldid=prev"/>
		<updated>2025-05-12T19:55:37Z</updated>

		<summary type="html">&lt;p&gt;highlithg&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:55, 12 May 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;Problem&#039;&#039;&#039;. You need to split a string into different parts. For example you may split a long text into lines or split the fields of a CSV line into records. You are probably looking around for something called &#039;&#039;&#039;split&#039;&#039;&#039;; it will not work, read on.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;Problem&#039;&#039;&#039;. You need to split a string into different parts. For example you may split a long text into lines or split the fields of a CSV line into records. You are probably looking around for something called &#039;&#039;&#039;split&#039;&#039;&#039;; it will not work, read on.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;Solution&#039;&#039;&#039;. The easiest fix is to use send aString a &#039;&#039;&#039;findTokens:&#039;&#039;&#039; message. It is just an unusual name for something most of programming languages call &#039;&#039;split&#039;&#039;. The following example shows how to use &#039;&#039;&#039;findTokens:&#039;&#039;&#039; and its cousin &#039;&#039;&#039;findTokens:keep:&#039;&#039;&#039;.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&#039;&#039;Solution&#039;&#039;&#039;. The easiest fix is to use send aString a &#039;&#039;&#039;findTokens:&#039;&#039;&#039; message. It is just an unusual name for something most of programming languages call &#039;&#039;split&#039;&#039;. The following example shows how to use &#039;&#039;&#039;findTokens:&#039;&#039;&#039; and its cousin &#039;&#039;&#039;findTokens:keep:&#039;&#039;&#039;.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;syntaxhighlight lang=&quot;smalltalk&quot;&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &amp;lt;code&amp;gt;&lt;/del&gt;&#039;hello world&#039; findTokens: &#039; &#039;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt; &quot; an OrderedCollection(&#039;hello&#039; &#039;world&#039;) &quot;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;hello world&#039; findTokens: &#039; &#039;. &quot; an OrderedCollection(&#039;hello&#039; &#039;world&#039;) &quot;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;a class=&quot;mw-diff-movedpara-left&quot; title=&quot;Paragraph was moved. Click to jump to new location.&quot; href=&quot;#movedpara_10_0_rhs&quot;&gt;&amp;#x26AB;&lt;/a&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;a name=&quot;movedpara_3_0_lhs&quot;&gt;&lt;/a&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;hello       world&lt;/del&gt;&#039; findTokens: &#039; &#039;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt; &quot; an OrderedCollection(&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;hello&lt;/del&gt;&#039; &#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;world&lt;/del&gt;&#039;) &quot;&lt;/div&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-added&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;foo,bar,baz&lt;/del&gt;&#039; findTokens: &#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;,&lt;/del&gt;&#039;. &quot; an OrderedCollection(&#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;foo&lt;/del&gt;&#039; &#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;bar&#039; &#039;baz&lt;/del&gt;&#039;) &quot;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;hello world&lt;/ins&gt;&#039; findTokens: &#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;&#039;. &quot; an OrderedCollection(&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;hello&lt;/ins&gt;&#039; &#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;world&lt;/ins&gt;&#039;) &quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-added&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;&#039;foo,bar,baz&#039; findTokens&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;: &#039;,&#039; keep&lt;/del&gt;: &#039;,&#039;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;  &lt;/del&gt; &quot; an OrderedCollection(&#039;foo&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039; &#039;,&lt;/del&gt;&#039; &#039;bar&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039; &#039;,&lt;/del&gt;&#039; &#039;baz&#039;) &quot;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&#039;foo,bar,baz&#039; findTokens: &#039;,&#039;. &quot; an OrderedCollection(&#039;foo&#039; &#039;bar&#039; &#039;baz&#039;) &quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;a class=&quot;mw-diff-movedpara-left&quot; title=&quot;Paragraph was moved. Click to jump to new location.&quot; href=&quot;#movedpara_12_1_rhs&quot;&gt;&amp;#x26AB;&lt;/a&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;a name=&quot;movedpara_9_0_lhs&quot;&gt;&lt;/a&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;&#039;foo,bar,,baz&#039; findTokens: &#039;,&#039; keep: &#039;,&#039;.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt; &quot; an OrderedCollection(&#039;foo&#039; &#039;,&#039; &#039;bar&#039; &#039;,&#039; &#039;,&#039; &#039;baz&#039;) &quot;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/code&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-added&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;a class=&quot;mw-diff-movedpara-right&quot; title=&quot;Paragraph was moved. Click to jump to old location.&quot; href=&quot;#movedpara_3_0_lhs&quot;&gt;&amp;#x26AB;&lt;/a&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;a name=&quot;movedpara_10_0_rhs&quot;&gt;&lt;/a&gt;&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;foo,bar,baz&lt;/ins&gt;&#039; findTokens: &#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;,&#039; keep:&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;,&lt;/ins&gt;&#039;. &quot; an OrderedCollection(&#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;foo&#039; &#039;,&#039; &#039;bar&#039; &#039;,&lt;/ins&gt;&#039; &#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;baz&lt;/ins&gt;&#039;) &quot;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;a class=&quot;mw-diff-movedpara-left&quot; title=&quot;Paragraph was moved. Click to jump to new location.&quot; href=&quot;#movedpara_12_2_rhs&quot;&gt;&amp;#x26AB;&lt;/a&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;a name=&quot;movedpara_11_0_lhs&quot;&gt;&lt;/a&gt;&#039;&#039;&#039;note&#039;&#039;&#039;. For months I have been using &#039;&#039;Cuis&#039;&#039; without knowing this fundamental method. I was using &#039;&#039;Regex&#039;&#039; to fill the gap, but it is like shooting a mosquito with a cannon. This stressed two points: 1) If you choose unusual names for your code poeple will not find/get you 2) &#039;&#039;Squeak&#039;&#039; &#039;&#039;Method Finder&#039;&#039; could be useful also in &#039;&#039;Cuis&#039;&#039;.&lt;/div&gt;&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-added&quot;&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;a class=&quot;mw-diff-movedpara-right&quot; title=&quot;Paragraph was moved. Click to jump to old location.&quot; href=&quot;#movedpara_9_0_lhs&quot;&gt;&amp;#x26AB;&lt;/a&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;a name=&quot;movedpara_12_1_rhs&quot;&gt;&lt;/a&gt;&#039;foo,bar,,baz&#039; findTokens: &#039;,&#039; keep: &#039;,&#039;. &quot; an OrderedCollection(&#039;foo&#039; &#039;,&#039; &#039;bar&#039; &#039;,&#039; &#039;,&#039; &#039;baz&#039;) &quot;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;a class=&quot;mw-diff-movedpara-right&quot; title=&quot;Paragraph was moved. Click to jump to old location.&quot; href=&quot;#movedpara_11_0_lhs&quot;&gt;&amp;#x26AB;&lt;/a&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;a name=&quot;movedpara_12_2_rhs&quot;&gt;&lt;/a&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/ins&gt;&#039;&#039;&#039;note&#039;&#039;&#039;. For months I have been using &#039;&#039;Cuis&#039;&#039; without knowing this fundamental method. I was using &#039;&#039;Regex&#039;&#039; to fill the gap, but it is like shooting a mosquito with a cannon. This stressed two points: 1) If you choose unusual names for your code poeple will not find/get you 2) &#039;&#039;Squeak&#039;&#039; &#039;&#039;Method Finder&#039;&#039; could be useful also in &#039;&#039;Cuis&#039;&#039;.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;----Dr. Nicola Mingotti wrote this page in 03-Dec-2021. Tested in Cuis5.0-4963.image.&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;----Dr. Nicola Mingotti wrote this page in 03-Dec-2021. Tested in Cuis5.0-4963.image.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Nmingott</name></author>
	</entry>
	<entry>
		<id>http://95.179.246.60/mediawiki/index.php?title=String_splitting&amp;diff=78&amp;oldid=prev</id>
		<title>Nmingott: importe material</title>
		<link rel="alternate" type="text/html" href="http://95.179.246.60/mediawiki/index.php?title=String_splitting&amp;diff=78&amp;oldid=prev"/>
		<updated>2025-05-04T20:04:37Z</updated>

		<summary type="html">&lt;p&gt;importe material&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Problem&amp;#039;&amp;#039;&amp;#039;. You need to split a string into different parts. For example you may split a long text into lines or split the fields of a CSV line into records. You are probably looking around for something called &amp;#039;&amp;#039;&amp;#039;split&amp;#039;&amp;#039;&amp;#039;; it will not work, read on.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Solution&amp;#039;&amp;#039;&amp;#039;. The easiest fix is to use send aString a &amp;#039;&amp;#039;&amp;#039;findTokens:&amp;#039;&amp;#039;&amp;#039; message. It is just an unusual name for something most of programming languages call &amp;#039;&amp;#039;split&amp;#039;&amp;#039;. The following example shows how to use &amp;#039;&amp;#039;&amp;#039;findTokens:&amp;#039;&amp;#039;&amp;#039; and its cousin &amp;#039;&amp;#039;&amp;#039;findTokens:keep:&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
 &amp;lt;code&amp;gt;&amp;#039;hello world&amp;#039; findTokens: &amp;#039; &amp;#039;.  &amp;quot; an OrderedCollection(&amp;#039;hello&amp;#039; &amp;#039;world&amp;#039;) &amp;quot;&lt;br /&gt;
 &amp;#039;hello       world&amp;#039; findTokens: &amp;#039; &amp;#039;.  &amp;quot; an OrderedCollection(&amp;#039;hello&amp;#039; &amp;#039;world&amp;#039;) &amp;quot;&lt;br /&gt;
 &amp;#039;foo,bar,baz&amp;#039; findTokens: &amp;#039;,&amp;#039;. &amp;quot; an OrderedCollection(&amp;#039;foo&amp;#039; &amp;#039;bar&amp;#039; &amp;#039;baz&amp;#039;) &amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 &amp;#039;foo,bar,baz&amp;#039; findTokens: &amp;#039;,&amp;#039; keep: &amp;#039;,&amp;#039;.   &amp;quot; an OrderedCollection(&amp;#039;foo&amp;#039; &amp;#039;,&amp;#039; &amp;#039;bar&amp;#039; &amp;#039;,&amp;#039; &amp;#039;baz&amp;#039;) &amp;quot;&lt;br /&gt;
 &amp;#039;foo,bar,,baz&amp;#039; findTokens: &amp;#039;,&amp;#039; keep: &amp;#039;,&amp;#039;.  &amp;quot; an OrderedCollection(&amp;#039;foo&amp;#039; &amp;#039;,&amp;#039; &amp;#039;bar&amp;#039; &amp;#039;,&amp;#039; &amp;#039;,&amp;#039; &amp;#039;baz&amp;#039;) &amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;note&amp;#039;&amp;#039;&amp;#039;. For months I have been using &amp;#039;&amp;#039;Cuis&amp;#039;&amp;#039; without knowing this fundamental method. I was using &amp;#039;&amp;#039;Regex&amp;#039;&amp;#039; to fill the gap, but it is like shooting a mosquito with a cannon. This stressed two points: 1) If you choose unusual names for your code poeple will not find/get you 2) &amp;#039;&amp;#039;Squeak&amp;#039;&amp;#039; &amp;#039;&amp;#039;Method Finder&amp;#039;&amp;#039; could be useful also in &amp;#039;&amp;#039;Cuis&amp;#039;&amp;#039;.&lt;br /&gt;
----Dr. Nicola Mingotti wrote this page in 03-Dec-2021. Tested in Cuis5.0-4963.image.&lt;/div&gt;</summary>
		<author><name>Nmingott</name></author>
	</entry>
</feed>