*Solved* The carat (^) symbol isn't recognised...
in
Programming Questions
•
4 months ago
Hello again! :)
What I am trying to do is to convert all occurrences of " ^i " in a string to being " î ". Here is an extract of my code:
- String sentence = "Je voudrais un peu de vin s'il vous pla^it.", formattedSentence = sentence.replaceAll("^i", "î");
- println(formattedSentence);
However, this just prints out the original 'sent
ence' (Je voudrais un peu de vin s'il vous pla^it.)... Why should that be?
Thanks in advance,
KingD.
1