我正在尝试找到一种方法来对输入电话号码进行字段限制。示例:
France (country code 33) local number 0142687984
应输入为
33142687984
而不是例如
00331 42687984, 0033 (1) 42687984, +33 1 42 68 79 84
等
基本上,数字不应该以 0 开头,不应该包含空格或符号,如 + ( ) 等,并且应该至少有 9 位数字
我一直在尝试寻找 deluge 脚本的示例,但没有成功。请帮忙
到目前为止我有这个:
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
// TODO Auto-generated method stub
String nom = request.getParameter("nom");
String prenom = request.getParameter("prenom");
String phone = request.getParameter("phone");
String adressefacturation = request.getParameter("adressefacturation");
String ZIPfacturation = request.getParameter("ZIPfacturation");
String paysfacturation = request.getParameter("paysfacturation");
String adresseexpedition = request.getParameter("adresseexpedition");
String ZIPexpedition = request.getParameter("ZIPexpedition");
String paysexpedition = request.getParameter("paysexpedition");
String CardNumber = request.getParameter("CardNumber");
String CardDateOfExpiry = request.getParameter("CardDateOfExpiry");
String password = request.getParameter("password");
}