Bookmark Topic Watch Topic
  • New Topic

xml validator  RSS feed

Ganapathy palanisamy
Posts: 22
  • Mark post as helpful
  • send pies
  • Report post to moderator
I working on validation for the phone no.

now i want to all the land line no also . If i am using the landline i need to allow the thy symbol -
so help to validate special symbols and space in phone no.

please help me to finish it.

view plaincopy to clipboardprint?

1. <field name="txtPhoneNo">
2. <field-validator type="requiredstring">
3. <message key="phoneNo.required" />
4. </field-validator>
5. <field-validator type="regex">
6. <param name="expression">^['',0-9]{12}$</param>
7. <message key="phoneNo.valid" />
8. </field-validator>
10. </field>
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!