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.
如何在 android 中开发手机模式,其中:
我创建了这个,但它不适用于前两位数,因为我不知道该怎么做:
Pattern pattern = Pattern.compile("\\d{2}\\d{6}");
试试这个模式(03|71|72|76|78)\d{6}。
(03|71|72|76|78)\d{6}