I have a string str="<u>rag</u>"
. Now, i want to get the string "rag"
only. How can I get it using regex?
My code is here..
I got the output=""
Thanks in advance..
C# code:
string input="<u>ragu</u>";
string regex = "(\\<.*\\>)";
string output = Regex.Replace(input, regex, "");
const string HTML_TAG_PATTERN = "<.*?>";
Regex.Replace (str, HTML_TAG_PATTERN, string.Empty);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With