<?xml version="1.0" encoding="windows-1252"?>
<node id="520248" title="Re: regular expression for workdir" created="2006-01-01 10:37:48" updated="2006-01-01 05:37:48">
<type id="11">
note</type>
<author id="366581">
Dietz</author>
<data>
<field name="doctext">
&lt;p&gt;
This would be more straightforward than the other suggestions:&lt;br&gt;
&lt;code&gt;
my ($subpath) = $path =~ m|$magic_word/(.*)/.*|;
print $subpath, $/;
&lt;/code&gt;
&lt;br&gt;&lt;b&gt;Update:&lt;/b&gt;&lt;p&gt;
Rereading the question, I misinterpreted it, since my solution will gather &lt;u&gt;all&lt;/u&gt; directories after the magic word.&lt;br&gt;
Go with [wfsp]'s solution which fits in perfectly.&lt;/p&gt;</field>
<field name="root_node">
520237</field>
<field name="parent_node">
520237</field>
</data>
</node>
