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.
次のような html 文字列で、いくつかのタグとそれらのタグのコンテンツを削除したいと思います。
val htmlString = "<html><b>test,test</b></html>" val strippedStr = htmlString.replaceAll("<b[^>]*>[a-z]*<//b>", "")
しかし、文字列は変更されていないようです。
私が特に間違っていることは何か分かりますか? (もしかして間違ったエスケープ?)
前もって感謝します