String patter: abcdefghijkdfgghrf ewfwegwegewg Need to remove everything in between<>
Below regex pattern can be used to get the required output:
return Regex.Replace(givenstring, $"<(.|\n|{Environment.NewLine})*?>", String.Empty);
Related #tags: #html #regex
Related questions
● What is the 403 Forbidden Error and how to resolve this error?
● In Python what will be the output of below code snippet?
● How to create card deck using bootstrap?
● How to create shadow effect for DIV tag using CSS?
● How to create website page where content will load automatically after every page scroll?
● How can we create grid panel using CSS?
● How to display HTML tags as plain text without conversion in php?
Looking for change? Click below to prepare for technical interview.
Technical Interview Questions