I need to replace multiple words with one word in a field at one time in one script.
Example in my LettersField I need to replace all the "Aa" and all the "Bb" and all the "Cc" with "Rr".
I am aware of the replace fxn and I cannot use the find and replace tool – which would be MUCH easier but I have to create a python script.
How can I do this – what would the code block be and the 'LettersField =' be?
Best Answer
If you plan to do this often you might be better off doing this as a function so you can reuse it.
Here is a screen capture as an example.
It's the same result in the end but it may be a bit more flexible.
Pre-Logic Script Code