Changing a character in a class
<p>I would like to amend the last character of a string in a particular class.
That is, I would like to change the comma to a full-stop in list items belonging to the class <code>last</code> (<code>li.last</code>). For example:</p>

<pre><code>&lt;li&gt;one,&lt;/li&gt;
&lt;li&gt;two,&lt;/li&gt;
&lt;li&gt;three,&lt;/li&gt;
&lt;li class="last"&gt;four,&lt;/li&gt;
</code></pre>

<p>change to:</p>

<pre><code>&lt;li class="last"&gt;four.&lt;/li&gt;
</code></pre>

<p>Is there a simple way to do this?</p>
