I need to check if a string last word is either "...abc" or "...xyz" or "...fgh"
.
How i can achieve the same thing using regex as i am trying to learn it?
e.g Sentence 1: Hi My Name is abc. Sentence 2: I live in xyz.
The above sentence is a sample one to demonstrate.