Front page | perl.beginners |
Postings from February 2012
match
Thread Next
From:
lina
Date:
February 17, 2012 20:51
Subject:
match
Message ID:
CAG9cJm=xE9-6OnZGzUAR5m84BccLtxv82F9N6eSZC1y6KkDQYg@mail.gmail.com
How to make a match for the following?
"V c #767676 " /* "0.808" */,
"W c #6F6F6F " /* "0.846" */,
"X c #696969 " /* "0.885" */,
"Y c #626262 " /* "0.923" */,
"Z c #5C5C5C " /* "0.962" */,
"a c #555555 " /* "1" */,
"b c #4E4E4E " /* "1.04" */,
"c c #484848 " /* "1.08" */,
I tried the
/^\"([[:alpha:])\s+c\s+\#*\s\/\*\"(\d)*\"*/x
$dict{$1} = $2;
not work,
mainly interest the
V 0.808
W 0.846
. .
. .
. .
parts,
Thanks for any suggestion,
Best regards,
Thread Next