Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
正则表达式 '/^[0-9]{5}+\.[0-9]{3}+\.[0-9]{5}+(\.[0-9]{4}){4}/'
'/^[0-9]{5}+\.[0-9]{3}+\.[0-9]{5}+(\.[0-9]{4}){4}/'
细绳00000.000.10115.0000.5210.9002.0000
00000.000.10115.0000.5210.9002.0000
我认为我创建的正则表达式是错误的,有人可以纠正我。
多次重复无效。下降+后{..}:
+
{..}
'/^[0-9]{5}\.[0-9]{3}\.[0-9]{5}(\.[0-9]{4}){4}/'
顺便说一句,您可以替换[0-9]为\d:
[0-9]
\d
'/^\d{5}\.\d{3}\.\d{5}(\.\d{4}){4}/'