in reply to Can't match my regex
Because you're binding to the end-of-string and \r is matching as a whitespace character after the version number (and is in the value returned to $version)
Why are you binding to the end at all?
/^Version:\s*(\d+)/ seems adequate to me.
-Greg
|
|---|