If I understood your question correctly, this should do the trick. I've modified your input data (only to make it consistantly spaces; you could change it back) and fixed your regex. When doing an
or (
||) or an
and (
&&), you need to specify what to compare it to every time (ex/
$foo =~ /$bar/ || $foo =~ /$bor/ || ...). Instead of doing this, I've done it in the regex.
while (<DATA>) {
print unless /(Everyone\s+R X|Webmins\s+all|Domain Admins\s+all|\s
++o\s*\z)/;
}
__DATA__
wwwroot\development\images\_notes\homepage_area_68_f4.jpg.mno Everyo
+ne R X
wwwroot\development\images\_notes\homepage_area_68_f4.jpg.mno Domain
+\Webmins RWXD
wwwroot\development\images\_notes\homepage_area_68_f4.jpg.mno Domain
+\Domain Admins all
wwwroot\development\images\_notes\homepage_area_68_f4.jpg.mno Domain
+\user o
That outputs
wwwroot\development\images\_notes\homepage_area_68_f4.jpg.mno Domain
+\Webmins RWXD
which I assume is what you want?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.