Regex 101 Exercise I6 - Remove font directives from HTML
Eric Gunnerson has come up with a great number of excellent regular expression exercises in his personal blog, and I will keep my blog sync with his whenever a new exercise is introduced there.
In this episode, the exercise is to remove font directives from HTML.
-----------------------------------------------------------------------------------------------------
Answer1:<font.*?>|</font> (Eric Gunnerson)
Answer2:</?font.*?> (Maurits)
Answer3:</?font[^>]*> (Kbiel)
Maurits' regex pattern is the shortest one.