Suppose I have a string where I want to change all "abc" to
"def". This is easy:
thing="abcdefghiabcjkl"
thing=strtran(thing,"abc","def")
What if I want to have it be case-insensitive in the search so that
thing="aBcdefghiABcjkl"
would also result in two changes?
The problem is that the flags parm controls case sensitivity, and
I apparently have to specify all parms.
thing=strtran(thing,"abc","def",,,1)
does not work. I have to fill in the blanks as in
thing=strtran(thing,"abc","def",1,n,1)
where n is arbitrarily high. This is a kludge -- think large memos.
Is there a way to avoid this?
Sincerely,
Gene Wirchenko
Computerese Irregular Verb Conjugation:
I have preferences.
You have biases.
He/She has prejudices.


|