Despite seeing many examples of this method used to remove “ from String VariablesI can’t get it to work… Other characters work okay so the issue seems to be “\”” Can anyone help with this please.
inline-code
let removeQuotesFirstCardFirstWordClue = cards.firstCardFirstWordClue.replacingOccurrences(of: """, with: "")
cards.firstCardFirstWordClue = removeQuotesFirstCardFirstWordClue
inline-code
print("cards.firstCardFirstWordClue", cards.firstCardFirstWordClue) // cards.firstCardFirstWordClue A “form” of greeting “ “””
let removeQuotesFirstCardFirstWordClue = cards.firstCardFirstWordClue.replacingOccurrences(of: "\"", with: "")
cards.firstCardFirstWordClue = removeQuotesFirstCardFirstWordClue
print("removeQuotesFirstCardFirstWordClue", cards.firstCardFirstWordClue) // removeQuotesFirstCardFirstWordClue A “form” of greeting “ “””
let removeCommasFirstCardSecondWordClue = cards.firstCardSecondWordClue.replacingOccurrences(of: ",", with: "")
cards.firstCardSecondWordClue = removeCommasFirstCardSecondWordClue
print("removeCommasFirstCardSecondWordClue", cards.firstCardSecondWordClue)