Erin Holloway
2021-01-27 03:18:44 UTC
Hoping you could help me write some syntax. I need to replace some text in my string. It needs to be replicated frequently so need to be syntax rather than do a find and replace (ctr+H etc).
My data FutureCare_1 to FutureCare_30:
4~4~Continue with current service stream~Continue with current service stream~25~5~5~3
5~5~5~5
5
4~32~Continue with current service stream~~Continue with current service stream~Continue with current service stream
4~Undetermined – recommended care pathway is still being formulated (only select if further initial assessment and/or engagement is required for intake
5~4~4~27
Specifically, anytime the terms:
"Continue with current service stream"
"Undetermined – recommended care pathway is still being formulated (only select if further initial assessment and/or engagement is required for intake purposes)".
come up I would like to replace them with 48 and 39 respectively, across 30 variables (FutureCare_1 to FutureCare_30).
So basically this, but over 30 variables:
replace(FutureCare_1 to FutureCare_30,'Continue with current service stream','48').
replace(FutureCare_1 to FutureCare_30,"Undetermined – recommended care pathway is still being formulated (only select if further initial assessment and/or engagement is required for intake purposes)", "39").
THanks in advance,
Erin
My data FutureCare_1 to FutureCare_30:
4~4~Continue with current service stream~Continue with current service stream~25~5~5~3
5~5~5~5
5
4~32~Continue with current service stream~~Continue with current service stream~Continue with current service stream
4~Undetermined – recommended care pathway is still being formulated (only select if further initial assessment and/or engagement is required for intake
5~4~4~27
Specifically, anytime the terms:
"Continue with current service stream"
"Undetermined – recommended care pathway is still being formulated (only select if further initial assessment and/or engagement is required for intake purposes)".
come up I would like to replace them with 48 and 39 respectively, across 30 variables (FutureCare_1 to FutureCare_30).
So basically this, but over 30 variables:
replace(FutureCare_1 to FutureCare_30,'Continue with current service stream','48').
replace(FutureCare_1 to FutureCare_30,"Undetermined – recommended care pathway is still being formulated (only select if further initial assessment and/or engagement is required for intake purposes)", "39").
THanks in advance,
Erin