dreamer610
MIS
Hi,
I'm looking for a way to replace all characters between two other characters in a string with some other value. So say I have
string = "adklfjadlkfdf{123}akldjfadklfjadklf{33333}kaldfjadkf{3}akdlfjad"
I would want to replace each set of characters in between each { and } with something else lets say "blah"
so my result would be
"adklfjadlkfdf{blah}akldjfadklfjadklf{blah}kaldfjadkf{blah}akdlfjad"
What would be the easiest way to do this? Thanks in advance and let me know if you need more information.
I'm looking for a way to replace all characters between two other characters in a string with some other value. So say I have
string = "adklfjadlkfdf{123}akldjfadklfjadklf{33333}kaldfjadkf{3}akdlfjad"
I would want to replace each set of characters in between each { and } with something else lets say "blah"
so my result would be
"adklfjadlkfdf{blah}akldjfadklfjadklf{blah}kaldfjadkf{blah}akdlfjad"
What would be the easiest way to do this? Thanks in advance and let me know if you need more information.