I am dealing with a string of numbers in scientific format. for example
24 6.924E+06 8.316E-01 1.052E-01 1.622E+01 1.311E+01 0.000E+00 6.059E-06 (snip.. extends for a bit)
Now I want to write a regex for perl which allows me to capture the ith value in the list. So my current set up is the folloiwng
$_ =~ ^\s+\d+\s+(\d+[.]\d+E[+]\d+);
my $temp = $1;
Which will get me the first number. I want to be able to capture the 7th or the 50th if I wanted without having to write a really long regex expression.
is there a concise way of doing this?
Thanks in advance.