suniln has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: need help in building dynamic regular expression
by kennethk (Abbot) on Sep 07, 2010 at 16:32 UTC

    See How do I post a question effectively?. You have been told before. You need to wrap code and data in <code> tags so that your posts are legible and so your data does not get corrupted in display.

    What have you tried? What didn't work? Post code and we'll help you debug. We aren't here to do your work for you. If this is homework, you are only hurting yourself by not doing it yourself.

    Why do you want to use regular expressions? Rather that dealing with all sorts of corner cases yourself, you should probably use File::Spec, one of the core modules. In particular, see splitpath, splitdir and catpath.

    A reply falls below the community's threshold of quality. You may see it by logging in.