REGEX - Allow Numbers and . - /

前端 未结 5 832
予麋鹿
予麋鹿 2021-01-13 19:10

I need a regular expression to allow just numeric and (.-/)

It should allow something like that:

011.235673.98923/0001-12

5条回答
  •  灰色年华
    2021-01-13 19:37

    ^[\d./-]*$
    

    does this. What regex flavor are you using? Perhaps it needs to be adjusted for it.

提交回复
热议问题