<?xml version="1.0" encoding="windows-1252"?>
<node id="629365" title="Re^5: Split a string based on change of character" created="2007-07-28 22:43:47" updated="2007-07-28 18:43:47">
<type id="11">
note</type>
<author id="176576">
eyepopslikeamosquito</author>
<data>
<field name="doctext">
&lt;P&gt;
I think [ikegami] meant &lt;CODE&gt;$i^=1&lt;/CODE&gt;, i.e.:
&lt;CODE&gt;
my @words = grep $i^=1, split /(?&lt;=(.))(?!\1)/, $string;
&lt;/CODE&gt;
which does work.
&lt;/P&gt;
</field>
<field name="root_node">
629259</field>
<field name="parent_node">
629296</field>
</data>
</node>
