Meaning of the word "If only" in English

What does "If only" mean in English? Explore the meaning, pronunciation, and specific usage of this word with Lingoland.

If only

US /ɪf ˈoʊn.li/
UK /ɪf ˈəʊn.li/

Exclamation

used to express a wish or regret, often about something that is impossible or did not happen

Example:
If only I had studied harder for the exam.
If only we had more time, we could finish the project.