Are regular expressions worth the hassle?

后端 未结 24 1399
说谎
说谎 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条回答
  •  -上瘾入骨i
    2020-12-03 14:19

    Due to the type of apps I build, the only RegEx's I regularly use are for email validation, html stripping, and character stripping to remove the garbage around phone numbers.

    It's rare that I need to do very much string manipulation other than concatenation.

    Incidentally, the apps are typically CRM's.

    So the hassle for me is limited to googling for a regex in the event I find myself in need. ;)

提交回复
热议问题