Hey all, can anybody please help me out here? Why does the following line not replace every character that appears more than once in the string?
str = "AAbCC";
StringReplace[str, c_ -> "X" /; StringCount[str, c] > 1]
Does anyone have a more elegant solution? Still learning Mathematica, sorry...
Thank you and all the best Timo