in reply to Re: Re: How to map a directory tree to a perl hash tree
in thread How to map a directory tree to a perl hash tree
I add the (?:...) around it for several reasons. First, to honor any of the /imsx switches you have on. Second, so that the regex has ONE root node (easier to parse). Third, so the regex is "its own regex". (That third reason is probably lame.)
japhy --
Perl and Regex Hacker
|
|---|