Fixing regex for recieving data