An assertive I wish sentence becomes an exclamatory one using If only + the same tense, ending with an exclamation mark. If only I had met you ten years ago! retains the past perfect and expresses strong regret, matching the original meaning exactly.