Topic: validation.xml file for the checkout form problem

  Print this page

1.validation.xml file for the checkout form problem Copy to clipboard
Posted by: mozhenghua
Posted on: 2004-12-12 14:26

I was confused to the elemelt
<constant>
<constant-name>phone</constant-name>
<constant-value>^\(?(\d{3})\)?[-| ]?(\d{3})[-| ]?(\d{4})$</constant-value>
</constant>
what is the value's meaning in the constant-value element?????????????????????
anybody can help me ????

2.Re:validation.xml file for the checkout form problem [Re: mozhenghua] Copy to clipboard
Posted by: leowu2000
Posted on: 2004-12-12 15:23

这叫正则表达式,看你贴出来的东西,应该是对电话号码的有效性验证。
具体意义可以参考java java.util.regex包里边的关于Pattern类的说明,很详细。
参见:
http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html

另外,麻烦以后把自己的问题描述清楚。还有,推荐看看那个什么《提问的艺术》。:)


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923