Use Pat Match to Replace Multiple Instances of a Pattern?
Feb 28, 2018 10:20 AM(938 views)
Hi. Suppose I have a string containing multiple instances of the same pattern. I can use Pat Match to replace the first instance, but is there a pattern expression I could use to replace all instances?
sample = "baazaaaa";
x = "a" | "b";
rc = Pat Match(sample, x, "c");
Show(sample); //Returns "caazaaaa", but I want "ccczcccc"
The Substitute or Munger commands would work, but I'm specifically looking to see if Pat Match can do the same.