in reply to Re^2: regex not working
in thread regex not working

If you want only up to '.' then use $7 instead of $6.