<div dir="ltr">While we are on the subject, is there an easy way to replace a substring with another one? &nbsp;I couldn&#39;t figure out any other way than to collect: the substrings and then put them back together...<div><br>
</div><div>Rob<br><br><div class="gmail_quote">On Sun, Sep 28, 2008 at 10:27 AM, Norbert Hartl <span dir="ltr">&lt;<a href="mailto:norbert@hartl.name">norbert@hartl.name</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="Ih2E3d">On Sun, 2008-09-28 at 09:12 -0500, Mark Volkmann wrote:<br>
&gt; What&#39;s the recommended way to determine if a String contains another<br>
&gt; String?<br>
&gt; I found one way.<br>
&gt;<br>
&gt; &#39;*substring*&#39; matches: string<br>
&gt;<br>
&gt; I&#39;m sure I could use a regular expression, but that seems like overkill.<br>
&gt; At first I thought I should use include: or contains: from Collection,<br>
&gt; but apparently not.<br>
&gt;<br>
&gt; ---<br>
</div>string includesSubstring: &#39;substring&#39;<br>
<font color="#888888"><br>
Norbert<br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
</div></div></blockquote></div><br></div></div>