in reply to Re^2: Test RegEx
in thread Test RegEx
You can't (try to) use / as the regex delimiter and (an unquoted) / within the regular expression. Use a different regex delimiter, for example !:
... if (@RECORD = grep (m!^\s*password\s+requisite\s+(/lib/security/$ISA/) +?pam_cracklib.*lcredit=([0123456789-]+!, @fRecords )) { ...
Also see perlop on m//
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Test RegEx
by Saved (Beadle) on Apr 08, 2010 at 18:37 UTC | |
by sierpinski (Chaplain) on Apr 08, 2010 at 19:53 UTC | |
|
Re^4: Test RegEx
by Saved (Beadle) on Apr 08, 2010 at 18:27 UTC |