caselessChangeStr >>-caselessChangeStr(needle,newneedle--+--------+--)--------------------------------->< +-,count-+ Returns a copy of the receiver object in which [newneedle] replaces occurrences of [needle] . If [count] is not specified, all occurrences of [needle] are replaced. If [count] is specified, it must be a positive, whole number that gives the maximum number of occurrences to be replaced. The [needle] searches are performed using caseless comparisons. Here are some examples: String class - caselessChangeStr method "AbaAbb"~caselessChangeStr("A","") -> "bbb" AbaBabAB~changeStr("ab","xy") -> "xyxyxyxy" AbaBabAB~changeStr("ab","xy",1) -> "xyaBabAB" |