Hi I have the following text that I would like to extract the numerical data from:
Statistics for all 1D-facet surfaces:
Surface area (input units ^1) = 1.1111111111111111
Surface area (lambda^1) = 1.1111111111111111
Facets/lambda**1:
Min = 123.1111111111111
Max = 111.1111111111111
Ave = 111.1111111111111
Edges/lambda:
Min = 4.111111111111111
Max = 11.11111111111111
Ave = 1.111111111111111
Facet aspect ratios:
Min = 5.111111111111111
Max = 1.111111111111111
Ave = 1.111111111111111
and this is the part of my code that doesn't do what I was intending to do, which is to extra the numbers from Min, Max, and Ave:
if (my ($FLMin) = /\s*Edges\/lambda:\s*Min =\n\s*(\d+[.]\d+)/s) {print "$FLMin\n";}
I believe iit's just a simple syntax issue but I couldn't figure out where goes wrong. Is there anyone that can help?
Statistics for all 1D-facet surfaces:
Surface area (input units ^1) = 1.1111111111111111
Surface area (lambda^1) = 1.1111111111111111
Facets/lambda**1:
Min = 123.1111111111111
Max = 111.1111111111111
Ave = 111.1111111111111
Edges/lambda:
Min = 4.111111111111111
Max = 11.11111111111111
Ave = 1.111111111111111
Facet aspect ratios:
Min = 5.111111111111111
Max = 1.111111111111111
Ave = 1.111111111111111
and this is the part of my code that doesn't do what I was intending to do, which is to extra the numbers from Min, Max, and Ave:
if (my ($FLMin) = /\s*Edges\/lambda:\s*Min =\n\s*(\d+[.]\d+)/s) {print "$FLMin\n";}
I believe iit's just a simple syntax issue but I couldn't figure out where goes wrong. Is there anyone that can help?