I want to be able to match a HTML tag in a given string. The string could be like this
<a href = "http://learnmore.com">Learn </a>.
I have a replace function that replaces the HTML tag with whitespace when I hard code the tag, but I want a regex pattern that can match any characters between the < and > special characters. I have tried a lot, searched a lot on google, but to no avail. I have read posts on the internet that HTML should not be parsed by regex, but here I am only trying a simple matching, so using regex should be OK.