I am trying to write some code to find sentence that has any word that has a letter c followed by a another letter and ends in o. e.g. cxo, ceo, cfo Aplogies should have mentioned that it can only have one letter in the middle of c and o
I've tried
("c.o")
but this does not seem to work. Please give me some help on where I am going wrong
Some examples.
["chrome", "commo", "cron"]
- These should not show
["cxo", "cfo", "coo", "cho"]
- These should show