REGEX - Allow Numbers and . - /

前端 未结 5 838
予麋鹿
予麋鹿 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:28

    The pattern you're looking for, that matches only those strings with numbers, ., -, and /:

    ^[0-9\.\-\/]+$
    

    If you have a specific language you're looking to implement this I may be able to help you.

提交回复
热议问题