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.
replaceAll()隣接する文字を交換するための正規表現は何でしょうか?
replaceAll()
たとえば、これを有効にするには:
abcdefg
これに:
badcfeg
"abcdefg".replaceAll("(.)(.)", "$2$1")
これは を返しbadcfegます。