I'd like to know how I can easily remove specific values from a string using C# and RegEx. I have the following HTML string:
Add [tt]PEELED PLUM SHAPED TOMATOES in tomato juice[/tt][rg]WHOLE PEELED TOMATOES[/rg][rp]WHOLE PEELED TOMATOES in JUICE[/rp], basil, oregano, parsley, salt, black pepper, sugar, [tt]TOMATO SAUCE[/tt][rg]TOMATO SAUCE[/rg][rp]TOMATO SAUCE[/rp], [brand][rg]TOMATO PASTE[/rg][rp]TOMATO PASTE[/rp]
I need some way to filter out e.g. this part:
[tt]PEELED PLUM SHAPED TOMATOES in tomato juice[/tt]
So the [tt] tag should be removed as well as the text that is in between. If the [tt] tag occurs multiple times inside the source string, it should be removed as well.
It this doable by using RegEx?
Thanks, Daniel