How do I use a regular expression to match any string, but at least 3 characters?

前端 未结 6 1382
陌清茗
陌清茗 2020-12-29 01:49

I am not a regex expert, but my request is simple: I need to match any string that has at least 3 or more characters that are matching.

So for instance, we have the

6条回答
  •  长情又很酷
    2020-12-29 02:24

    I tried find similiar as topic first post.

    For my needs I find this

    http://answers.oreilly.com/topic/217-how-to-match-whole-words-with-a-regular-expression/

    "\b[a-zA-Z0-9]{3}\b"
    

    3 char words only "iokldöajf asd alkjwnkmd asd kja wwda da aij ednm <.jkakla "

提交回复
热议问题