<?xml version="1.0" encoding="windows-1252"?>
<node id="1011302" title="Need to change directory string." created="2013-01-02 11:15:41" updated="2013-01-02 11:15:41">
<type id="115">
perlquestion</type>
<author id="994332">
huchister</author>
<data>
<field name="doctext">
I would like to change directory string. 

Here is the example URL. 

&lt;code&gt;
my $dir_str = "test/home/players/demo//thumbs/super.jpg";
&lt;/code&gt;

I am trying to remove 'demo//thumbs' part to 'demo/thumbs' 

Is there easier way to put this? 

I am trying to use s/ method.</field>
</data>
</node>
