Signifies a a regret about an action of the past, or a wish or desire for the present or the future.
"If only I had not lied"; "I wish I could go to the beach this year"