MoshiachNow
IS-IT--Management
Know it's simple,but got stuck ...
my Array holds a line that looks like:
Prinergy Update 3.1.0.2 c installed on Tue Jul 11 15:42:33 2006 Id: {3.1.0.2}
Need to get the last numbers between the {} .
the following regex does not work for me ....
for (@INFO) {
chomp;
if (/Prinergy Update/) {
s/{(.*)}/$1/ ;
$PRINVER=$_;
}
}
It prints :
Prinergy Update 3.1.0.2 c installed on Tue Jul 11 15:42:33 2006 Id: 3.1.0.2
Appreciate any help.
Long live king Moshiach !
my Array holds a line that looks like:
Prinergy Update 3.1.0.2 c installed on Tue Jul 11 15:42:33 2006 Id: {3.1.0.2}
Need to get the last numbers between the {} .
the following regex does not work for me ....
for (@INFO) {
chomp;
if (/Prinergy Update/) {
s/{(.*)}/$1/ ;
$PRINVER=$_;
}
}
It prints :
Prinergy Update 3.1.0.2 c installed on Tue Jul 11 15:42:33 2006 Id: 3.1.0.2
Appreciate any help.
Long live king Moshiach !