REGEX - Allow Numbers and . - /

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

    How about something like

    (\d|\.|\-|\/)*

    Does it matter how many - and . and / you get? Does the order matter?

提交回复
热议问题