hellosarathy has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
How do I match:
/usr/bin /usr/local/bin /usr/*anydir*/bin *anydir* may or may not appear? my regexp: $path =~ m|^/usr/(/[^/]+{0,1})/bin/| reports syntax error.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: dir match, dir may or may not appear
by Corion (Patriarch) on Jan 12, 2016 at 08:58 UTC | |
by hellosarathy (Novice) on Jan 12, 2016 at 09:13 UTC | |
by Corion (Patriarch) on Jan 12, 2016 at 09:18 UTC | |
by Anonymous Monk on Jan 12, 2016 at 09:20 UTC | |
Re: dir match, dir may or may not appear
by GrandFather (Saint) on Jan 12, 2016 at 10:04 UTC | |
Re: dir match, dir may or may not appear
by QuillMeantTen (Friar) on Jan 12, 2016 at 09:17 UTC | |
by hellosarathy (Novice) on Jan 12, 2016 at 10:18 UTC | |
by hippo (Bishop) on Jan 12, 2016 at 10:34 UTC | |
Re: dir match, dir may or may not appear
by hellosarathy (Novice) on Jan 12, 2016 at 10:26 UTC | |
by GrandFather (Saint) on Jan 13, 2016 at 05:34 UTC |
Back to
Seekers of Perl Wisdom