MediumParsing
Simple HTML Tag Matcher
Write a regex that detects simple HTML tags like <div>, <p>, or a closing </span>, without worrying about attributes inside the tag.
Solved! All test cases pass.
//
<div>Hello</div> / <p> / </span> / no tags here / <3 you / <>
Test cases
- <div>Hello</div>expect match
- <p>expect match
- </span>expect match
- no tags hereexpect no match
- <3 youexpect no match
- <>expect no match