or (if you don't mind using unless)...while (<>) { next if !/p/; next if !/e/; next if !/r/; next if !/l/; print; }
while (<>) { next unless /p/; next unless /e/; next unless /r/; next unless /l/; print; }
In reply to Re: A Quick Regex Question
by McDarren
in thread A Quick Regex Question
by chinamox
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |