/(\d+\.\d*)\s+\.+\s+(\S+)\s*/g ^ ^ ^ ^ ^ ^ ^ ^ ^ | | | | | | | | | | | | | | | | | + - Globally | | | | | | | + - 0+ spaces | | | | | | + - Capture non-whitespace characters | | | | | + - 1+ spaces | | | | + - Multiple periods | | | + - 1+ spaces | | + - Capture zero or more digits | + - Capture a period + - Capture one or more digits