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.
正規表現の問題があります。「00」または「+」で始まる電話番号を強制しようとしていますが、うまくいきません。
String PHONE_PATTERN = "^[(00)|(+)]{1}[0-9\\s.\\/-]{6,20}$";
たとえば、「0123-45678」は引き続き許可されます。私は何を間違っていますか?