My question concerns the replaceAll method of String class.
My purpose is to replace all the em-dashes in a text with a basic "-".
I know the unicode character of em-dash is u2014.
I tried it in the following way:
String s = "asd – asd";
s = s.replaceAll("u2014", "-");
Still, the em-dash is not replaced. What is it I'm doing wrong?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…