<?xml version="1.0" encoding="windows-1252"?>
<node id="353097" title="Re:^3 Remove repeated characters from a string" created="2004-05-13 11:12:45" updated="2005-06-08 09:27:04">
<type id="11">
note</type>
<author id="330176">
knew</author>
<data>
<field name="doctext">
&lt;p&gt;This will do that for you:&lt;/p&gt;

&lt;code&gt;1 while $string =~ s/(.)(.*)\1/$1$2/g&lt;/code&gt;
</field>
<field name="root_node">
353072</field>
<field name="parent_node">
353090</field>
</data>
</node>
