mhearse has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; my $line = "mdrecoveryd"; my $process = "/bin/bash -c -x /bin/ttrun-parts && /bin/ttrun-parts +/etc/cron.hourly || run-parts /etc/cron.hourly"; if ($line =~ m/$process/i) { print "YES\n"; } else { print "NO\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regex false match
by GrandFather (Saint) on Dec 19, 2006 at 02:01 UTC | |
by mhearse (Chaplain) on Dec 19, 2006 at 02:10 UTC | |
by ikegami (Patriarch) on Dec 19, 2006 at 05:43 UTC |