Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
特定の文字列内のすべての特殊文字を削除する方法。charAt(i)を使用してすべての文字をチェックしてみました。しかし、その汚い。同じことを達成するためのより良い方法はありますか?
String.replaceAll(regexp, replaceChar)
文字列/正規表現のドキュメントで、エスケープ文字とその他の強力な正規表現-fuを確認してください。