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}/'