Unless there is a good reason not to, I would suggest to parse the text manually instead of using regular expressions. It seems you are focused on one class of characters (digits+dot) so using a regular expression will not be much faster (if at all) than parsing the string manually and you will save a lot of time trying to get the expression right. You can even use some kind of parser generator if you want.
Bookmarks