himanshu.padmanabhi has asked for the wisdom of the Perl Monks concerning the following question:
So 'lv...' matches with 'lvabc' which I dont want.Another way is to split 'fstab' line and directly check 2nd argument.But If how can I do it with regular expression? 'index' function also doesn't solve the purpose.$line="/dev/mapper/VGNEW1-Lv2 /volumes/VGNEW1/lvabc ext3 rw,grpquota,u +srquota,acl 0 0"; if($line =~ m/\/volumes\/VGNEW1\/lv.../) { ...some code }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Matching exact string
by CountZero (Bishop) on Mar 24, 2009 at 07:06 UTC | |
|
Re: Matching exact string
by rovf (Priest) on Mar 24, 2009 at 09:07 UTC | |
|
Re: Matching exact string
by targetsmart (Curate) on Mar 24, 2009 at 12:28 UTC | |
by himanshu.padmanabhi (Acolyte) on Mar 24, 2009 at 13:30 UTC | |
|
Re: Matching exact string
by apl (Monsignor) on Mar 24, 2009 at 11:53 UTC | |
|
Re: Matching exact string
by linuxer (Curate) on Mar 24, 2009 at 17:52 UTC | |
|
Re: Matching exact string
by Anonymous Monk on Mar 24, 2009 at 07:03 UTC | |
by himanshu.padmanabhi (Acolyte) on Mar 24, 2009 at 09:03 UTC | |
|
Re: Matching exact string
by VinsWorldcom (Prior) on Mar 24, 2009 at 12:00 UTC |