Extract numbers from expression