Are regular expressions worth the hassle?

后端 未结 24 1476
说谎
说谎 2020-12-03 13:58

It strikes me that regular expressions are not understood well by the majority of developers. It also strikes me that for a lot of problems where regular expressions are use

24条回答
  •  长情又很酷
    2020-12-03 14:11

    I would just like to add that unit testing is the ideal way to make your regular expressions maintainable. I consider Regex an essential developer skill that is always a practical alternative to writing many lines of string manipulation code.

提交回复
热议问题