pr33 has asked for the wisdom of the Perl Monks concerning the following question:
Basically the word next to the keyword CentOs should be extracted , Below is the Regex that I am using . The multiline string is captured in a variable $x my ($y) = $x =~ /(?<=CentOs )(\d+\.\d+)/mg;data This is CentOs 6.5 version and CentOs 5.5 is not supported. The CentOS 6.0 has ability for LVM Snap backups where as CentOs 5.5 do +esn't.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to find a string after matching a Keyword
by Athanasius (Archbishop) on Jan 08, 2015 at 02:33 UTC | |
|
Re: How to find a string after matching a Keyword
by LanX (Saint) on Jan 08, 2015 at 02:32 UTC | |
|
Re: How to find a string after matching a string
by Anonymous Monk on Jan 08, 2015 at 07:52 UTC |