the sample values are very general and maybe the approach needs to be shifted more on the details. Maybe the comma can be detected and removed with the help of regex.
here the comma is identified if it stands between 2 small case letters
Thank you for your response, I will add more details to my query.
I wish to separate the values as they are, i.e., when I split them into an array, the items should be {“Option1”, “Option2”, “Option3”…“Optio,n10”, “Op,tion11”}.
Here are is an example of the actual string(just a portion of it that contains two items)
“All Indirect.Employee Bonuses, Awards and Incentives,
OPS Catalog Only.Employee Bonuses, Awards and Incentives”
Writing it down once more, highlighting the commas present inside of the items themselves:
“All Indirect.Employee Bonuses, Awards and Incentives, OPS Catalog Only.Employee Bonuses, Awards and Incentives”
As you can see, I won’t be able to split them into two items, it will come back as four items.
I only wish to retain those commas that come before “All Indirect.” and “OPS Catalog”
From your description above, this is the expression I came up with, but I’ve screwed up somewhere.