How can i pass multiple patterns to the regex.replace() pattern parameter?
In PHP you just give up the array containing them. Is there some kind of same option in C#?
I’m looping through some usernames and some of those usernames are surrounded by html tags. The html tags are not all the same. But i do know which ones they are.
So if i can pass multiple patterns to look for in the regex.replace() pattern parameter, would be nice. Or i’ll have to make for each html tag a separate pattern and run the regex.replace() function.
Hope i’m clear about what i’m trying to accomplish!
Thanks in advance!
[EDIT]
@Alan Moore,
Bottom line, removing all html tags out of a string, is what i’m trying to do.
[/EDIT]
So you have a list of strings, each consisting entirely of a user name optionally enclosed in HTML tags? It shouldn’t matter which tags they are; just remove anything that looks like a tag: