Hello,
I have a variable indicating state of residence. I want to replace And with & when it appears in the middle, for instance, Jammu And Kashmir, Daman And Diu. But when I run
, it replaces And in other positions as well. For instance, Andhra Pradesh becomes &hra Pradesh. How can I replace just the middle part?
Thank you.
I have a variable indicating state of residence. I want to replace And with & when it appears in the middle, for instance, Jammu And Kashmir, Daman And Diu. But when I run
Code:
replace state = subinstr(state,"And","&",.)
Thank you.
Comment