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.




相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
  • 2021-09-23
  • 2021-05-21
  • 2021-06-10
  • 2021-10-12
  • 2021-07-07
猜你喜欢
  • 2021-08-20
  • 2021-05-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-08
  • 2021-08-11
相关资源
相似解决方案