I have a file that contains hundreds of lines of the form
long long int FILE_FORMAT_HEADER.file.index 1.4 3
I don't care about anything except those two numbers at the end: 1.4 and 3.
I'm using the following regular expression:
$line =~ m/.+\s+(\d+(\.\d+)?)\s+(\d+(\.\d+)?)/
The idea being to read as much of that string as possible, then store the first number into $1 and the second into $2. After that is run I expect $1 to contain 1.4 and $2 to contain 3, but I'm not having much success. I would guess that my regular expression is malformed. I've been staring at it and rewriting it for a while, but I would greatly appreciate an outside view.