in reply to dir match, dir may or may not appear
What syntax error and where? Perl is usually quite informative with its error messages.
Most likely, it's a syntax error in your regular expression. See perlre, especially about quantifiers.
Personally, I would reformulate the problem as "any directory that starts with /usr/ and ends with /bin, and do the checking in two regular expressions instead.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: dir match, dir may or may not appear
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 |