in reply to Question about conditional regex capture

For starters, anchor your regex, for two reasons: efficiency, and you prevent a match to happen by the regex engine starting to match at the second group.
/^(\d+.\d+\.(\d{2,}|[4-9])\.\d+)/

Abigail